From 3a95383e09676da39d98b98362384c819b5a47a6 Mon Sep 17 00:00:00 2001 From: Dan Winship Date: Mon, 19 Aug 2002 16:36:07 +0000 Subject: source_type_changed may try to change the transport optionmenu * mail-account-gui.c (mail_account_gui_setup): source_type_changed may try to change the transport optionmenu (incorrectly in this case), so don't call gtk_option_menu_set_history on it until after emitting "activate" on the source type menuitem. svn path=/trunk/; revision=17800 --- mail/mail-account-gui.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'mail/mail-account-gui.c') diff --git a/mail/mail-account-gui.c b/mail/mail-account-gui.c index 03eb632fd9..e5f1efc51f 100644 --- a/mail/mail-account-gui.c +++ b/mail/mail-account-gui.c @@ -1664,11 +1664,9 @@ mail_account_gui_setup (MailAccountGui *gui, GtkWidget *top) /* set the menus on the optionmenus */ gtk_option_menu_remove_menu (gui->source.type); gtk_option_menu_set_menu (gui->source.type, stores); - gtk_option_menu_set_history (gui->source.type, hstore); gtk_option_menu_remove_menu (gui->transport.type); gtk_option_menu_set_menu (gui->transport.type, transports); - gtk_option_menu_set_history (gui->transport.type, htransport); /* Force the authmenus to the width of the widest element */ if (max_authname) { @@ -1694,11 +1692,15 @@ mail_account_gui_setup (MailAccountGui *gui, GtkWidget *top) gtk_widget_show_all (top); } - if (fstore) + if (fstore) { gtk_signal_emit_by_name (GTK_OBJECT (fstore), "activate"); + gtk_option_menu_set_history (gui->source.type, hstore); + } - if (ftransport) + if (ftransport) { gtk_signal_emit_by_name (GTK_OBJECT (ftransport), "activate"); + gtk_option_menu_set_history (gui->transport.type, htransport); + } if (source_proto) { setup_service (&gui->source, gui->account->source); -- cgit