aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-account-gui.c
diff options
context:
space:
mode:
authorDan Winship <danw@src.gnome.org>2002-08-20 00:36:07 +0800
committerDan Winship <danw@src.gnome.org>2002-08-20 00:36:07 +0800
commit3a95383e09676da39d98b98362384c819b5a47a6 (patch)
tree6b07e5023581e9321ba6422193cf7c5ad27402c3 /mail/mail-account-gui.c
parent78542d0487ab419419197ff357bf53e6b5f21adf (diff)
downloadgsoc2013-evolution-3a95383e09676da39d98b98362384c819b5a47a6.tar.gz
gsoc2013-evolution-3a95383e09676da39d98b98362384c819b5a47a6.tar.zst
gsoc2013-evolution-3a95383e09676da39d98b98362384c819b5a47a6.zip
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
Diffstat (limited to 'mail/mail-account-gui.c')
-rw-r--r--mail/mail-account-gui.c10
1 files changed, 6 insertions, 4 deletions
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);