changeset 9297:391a6533296a

[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>
author Mark Doliner <mark@kingant.net>
date Tue, 15 Jun 2004 23:02:37 +0000
parents 7b08b98d8278
children b0b544e0f246
files src/gtkconv.c
diffstat 1 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- 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);