# HG changeset patch # User Luke Schierer # Date 1038716883 0 # Node ID ab831dca298ac85ff0c83031f5b5ee21ba07a91f # Parent 764b41bb1905a4c15b449af55245354336e214c4 [gaim-migrate @ 4232] this should fix the loss of focus when you are on the first tab and a new tab is created. thanks to ldexter for pointing me to the right segment of code and for bugging me untill i sat down and figured out what it should be testing, and to chipx86 for helping me with the test itself and for helping test the code. committer: Tailor Script diff -r 764b41bb1905 -r ab831dca298a src/conversation.c --- a/src/conversation.c Sun Dec 01 03:10:39 2002 +0000 +++ b/src/conversation.c Sun Dec 01 04:28:03 2002 +0000 @@ -3030,7 +3030,8 @@ gtk_widget_show(win); if (!(im_options & OPT_IM_ONE_WINDOW) - || gtk_notebook_get_current_page(GTK_NOTEBOOK(convo_notebook)) == 0) + || ((gtk_notebook_get_current_page(GTK_NOTEBOOK(convo_notebook)) == 0) + && (c == g_list_nth_data(conversations, 0)))) gtk_widget_grab_focus(c->entry); }