# HG changeset patch # User Mark Doliner # Date 1085626059 0 # Node ID 67e20c25d41efc701714f63a8f20fe75ed445d16 # Parent f06013ff80d9d01a9573c6a0a67baf76bd6c5407 [gaim-migrate @ 9855] I twiddled with the focus chain for the away message dialog. Focus is initially given to the title entry, again. Using tab to change focus, it switches from Title entry->gtkimhtml->buttons at the bottom (ie. you no longer have to hit tab a hojillion times to get through the gtkimhtmltoolbar) committer: Tailor Script diff -r f06013ff80d9 -r 67e20c25d41e src/dialogs.c --- a/src/dialogs.c Thu May 27 02:02:47 2004 +0000 +++ b/src/dialogs.c Thu May 27 02:47:39 2004 +0000 @@ -695,7 +695,7 @@ GtkWidget *label; GtkWidget *sw; GtkWidget *button; - + GList *focus_chain = NULL; struct create_away *ca = g_new0(struct create_away, 1); /* Set up window */ @@ -730,6 +730,7 @@ ca->entry = gtk_entry_new(); gtk_box_pack_start(GTK_BOX(hbox), ca->entry, TRUE, TRUE, 0); gaim_set_accessible_label (ca->entry, label); + focus_chain = g_list_append(focus_chain, hbox); /* Toolbar */ ca->toolbar = gtk_imhtmltoolbar_new(); @@ -758,6 +759,7 @@ gaim_setup_imhtml(ca->text); gtk_container_add(GTK_CONTAINER(sw), ca->text); + focus_chain = g_list_append(focus_chain, sw); if (dummy) { struct away_message *amt; @@ -793,9 +795,10 @@ button = gaim_pixbuf_button_from_stock(_("_Cancel"), GTK_STOCK_CANCEL, GAIM_BUTTON_HORIZONTAL); g_signal_connect(G_OBJECT(button), "clicked", G_CALLBACK(away_mess_destroy), ca); gtk_box_pack_end(GTK_BOX(hbox), button, FALSE, FALSE, 0); + focus_chain = g_list_prepend(focus_chain, hbox); gtk_widget_show_all(ca->window); - gtk_widget_grab_focus(ca->text); + gtk_container_set_focus_chain(GTK_CONTAINER(vbox), focus_chain); } static void