diff options
author | Dan Winship <danw@src.gnome.org> | 2002-08-20 00:36:07 +0800 |
---|---|---|
committer | Dan Winship <danw@src.gnome.org> | 2002-08-20 00:36:07 +0800 |
commit | 3a95383e09676da39d98b98362384c819b5a47a6 (patch) | |
tree | 6b07e5023581e9321ba6422193cf7c5ad27402c3 | |
parent | 78542d0487ab419419197ff357bf53e6b5f21adf (diff) | |
download | gsoc2013-evolution-3a95383e09676da39d98b98362384c819b5a47a6.tar gsoc2013-evolution-3a95383e09676da39d98b98362384c819b5a47a6.tar.gz gsoc2013-evolution-3a95383e09676da39d98b98362384c819b5a47a6.tar.bz2 gsoc2013-evolution-3a95383e09676da39d98b98362384c819b5a47a6.tar.lz gsoc2013-evolution-3a95383e09676da39d98b98362384c819b5a47a6.tar.xz 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
-rw-r--r-- | mail/ChangeLog | 7 | ||||
-rw-r--r-- | mail/mail-account-gui.c | 10 |
2 files changed, 13 insertions, 4 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog index 3e2a731d0d..fcc60057df 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,3 +1,10 @@ +2002-08-19 Dan Winship <danw@ximian.com> + + * 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. + 2002-08-09 Peter Williams <peterw@ximian.com> * subscribe-dialog.c: Change this into a GnomeApp so we get a 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); |