# HG changeset patch
# User Mark Doliner <mark@kingant.net>
# Date 1087340557 0
# Node ID 391a6533296ae0a712c34b280b5eb5740b9544b2
# Parent  7b08b98d827879cee090a435f59122761bd4f98e
[gaim-migrate @ 10100]
Question o' the hour:
GTK autofocuses the first widget when switching to a new tab,
is there a way to turn that off?

committer: Tailor Script <tailor@pidgin.im>

diff -r 7b08b98d8278 -r 391a6533296a src/gtkconv.c
--- a/src/gtkconv.c	Tue Jun 15 22:13:05 2004 +0000
+++ b/src/gtkconv.c	Tue Jun 15 23:02:37 2004 +0000
@@ -1731,7 +1731,9 @@
 		(event->keyval == GDK_Left) ||
 		(event->keyval == GDK_Right) ||
 		(event->keyval == GDK_Home) ||
-		(event->keyval == GDK_End))
+		(event->keyval == GDK_End) ||
+		(event->keyval == GDK_Tab) ||
+		(event->keyval == GDK_ISO_Left_Tab))
 			return FALSE;
 
 	if (event->type == GDK_KEY_RELEASE)
@@ -2741,14 +2743,12 @@
 
 	/*
 	 * We pause icons when they are not visible.  If this icon should
-	 * be animated then start it back up again.lll
+	 * be animated then start it back up again.
 	 */
 	if ((gaim_conversation_get_type(conv) == GAIM_CONV_IM) &&
 		(gtkconv->u.im->animate))
 		start_anim(NULL, conv);
 
-	gtk_widget_grab_focus(gtkconv->entry);
-
 	gtk_window_set_title(GTK_WINDOW(gtkwin->window),
 			     gtk_label_get_text(GTK_LABEL(gtkconv->tab_label)));
 }
@@ -4500,7 +4500,7 @@
 	if (gaim_conversation_get_type(conv) == GAIM_CONV_IM)
 		gaim_gtkconv_update_buddy_icon(conv);
 
-	/* Add this pane to the conversations notebook. */
+	/* Add this pane to the conversation's notebook. */
 	gtk_notebook_append_page(GTK_NOTEBOOK(gtkwin->notebook), tab_cont, tabby);
 	gtk_notebook_set_menu_label(GTK_NOTEBOOK(gtkwin->notebook),
 								tab_cont, menu_tabby);