comparison src/dialogs.c @ 8887:56339eb6dab1

[gaim-migrate @ 9656] A patch from GoRN (Kevin Barry) to make the text entry in the edit-an- away-message box focusable. committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Thu, 06 May 2004 05:24:15 +0000
parents ef1e60f82be0
children 35b68d76cb4c
comparison
equal deleted inserted replaced
8886:61602bc26a65 8887:56339eb6dab1
788 gtk_box_pack_start(GTK_BOX(hbox), label, FALSE, FALSE, 0); 788 gtk_box_pack_start(GTK_BOX(hbox), label, FALSE, FALSE, 0);
789 789
790 ca->entry = gtk_entry_new(); 790 ca->entry = gtk_entry_new();
791 gtk_box_pack_start(GTK_BOX(hbox), ca->entry, TRUE, TRUE, 0); 791 gtk_box_pack_start(GTK_BOX(hbox), ca->entry, TRUE, TRUE, 0);
792 gaim_set_accessible_label (ca->entry, label); 792 gaim_set_accessible_label (ca->entry, label);
793 gtk_widget_grab_focus(ca->entry);
794 793
795 /* Toolbar */ 794 /* Toolbar */
796 ca->toolbar = gtk_imhtmltoolbar_new(); 795 ca->toolbar = gtk_imhtmltoolbar_new();
797 gtk_box_pack_start(GTK_BOX(vbox), ca->toolbar, FALSE, FALSE, 0); 796 gtk_box_pack_start(GTK_BOX(vbox), ca->toolbar, FALSE, FALSE, 0);
798 797
854 button = gaim_pixbuf_button_from_stock(_("Cancel"), GTK_STOCK_CANCEL, GAIM_BUTTON_HORIZONTAL); 853 button = gaim_pixbuf_button_from_stock(_("Cancel"), GTK_STOCK_CANCEL, GAIM_BUTTON_HORIZONTAL);
855 g_signal_connect(G_OBJECT(button), "clicked", G_CALLBACK(away_mess_destroy), ca); 854 g_signal_connect(G_OBJECT(button), "clicked", G_CALLBACK(away_mess_destroy), ca);
856 gtk_box_pack_end(GTK_BOX(hbox), button, FALSE, FALSE, 0); 855 gtk_box_pack_end(GTK_BOX(hbox), button, FALSE, FALSE, 0);
857 856
858 gtk_widget_show_all(ca->window); 857 gtk_widget_show_all(ca->window);
858 gtk_widget_grab_focus(ca->text);
859 } 859 }
860 860
861 static void 861 static void
862 alias_chat_cb(GaimChat *chat, const char *new_alias) 862 alias_chat_cb(GaimChat *chat, const char *new_alias)
863 { 863 {