Mercurial > pidgin.yaz
changeset 8176:c733bb72b002
[gaim-migrate @ 8890]
A patch from Nathan Fredrickson to focus the text entry box in conversations
when switching tabs. This correctly fixes my hack from a few minutes ago.
Well, it's more correct, anyway. I don't _think_ it should hurt any kind
of accessibility... convo windows will need a caret or something anyway.
Rock on.
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Wed, 28 Jan 2004 05:50:32 +0000 |
parents | f347c8d25cf5 |
children | 4e68644a47f6 |
files | src/gtkconv.c |
diffstat | 1 files changed, 3 insertions(+), 10 deletions(-) [+] |
line wrap: on
line diff
--- a/src/gtkconv.c Wed Jan 28 05:43:04 2004 +0000 +++ b/src/gtkconv.c Wed Jan 28 05:50:32 2004 +0000 @@ -3678,16 +3678,6 @@ gtk_box_pack_start(GTK_BOX(hbox), gtkchat->topic_text, TRUE, TRUE, 5); gtk_widget_show(gtkchat->topic_text); - - /* - * We probably shouldn't need this. When switching tabs to a chat - * window focus is supposed to go to the entry box, but for some - * reason it's going to the topic entry box. - */ - g_signal_connect(G_OBJECT(gtkchat->topic_text), "key_press_event", - G_CALLBACK(refocus_entry_cb), gtkconv); - g_signal_connect(G_OBJECT(gtkchat->topic_text), "key_release_event", - G_CALLBACK(refocus_entry_cb), gtkconv); } /* Setup the horizontal pane. */ @@ -4292,6 +4282,9 @@ gtkconv->show_formatting_toolbar = gaim_prefs_get_bool( "/gaim/gtk/conversations/show_formatting_toolbar"); + g_signal_connect_swapped(G_OBJECT(pane), "focus", + G_CALLBACK(gtk_widget_grab_focus), + gtkconv->entry); } gtkconv->tabby = tabby = gtk_hbox_new(FALSE, 5);