diff options
author | Jeffrey Stedfast <fejj@helixcode.com> | 2001-01-09 04:37:44 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2001-01-09 04:37:44 +0800 |
commit | deb9cf435980c48539c5612ebf1533b6f853608c (patch) | |
tree | 6673b44e7e776f1879eb479980a212efb3745fad /mail/mail-config-druid.c | |
parent | 51bd9ba1bb27bf599c373c77248f97eba3c5dd74 (diff) | |
download | gsoc2013-evolution-deb9cf435980c48539c5612ebf1533b6f853608c.tar gsoc2013-evolution-deb9cf435980c48539c5612ebf1533b6f853608c.tar.gz gsoc2013-evolution-deb9cf435980c48539c5612ebf1533b6f853608c.tar.bz2 gsoc2013-evolution-deb9cf435980c48539c5612ebf1533b6f853608c.tar.lz gsoc2013-evolution-deb9cf435980c48539c5612ebf1533b6f853608c.tar.xz gsoc2013-evolution-deb9cf435980c48539c5612ebf1533b6f853608c.tar.zst gsoc2013-evolution-deb9cf435980c48539c5612ebf1533b6f853608c.zip |
More lovely fixes...
2001-01-08 Jeffrey Stedfast <fejj@helixcode.com>
* mail-config-druid.c: More lovely fixes...
* mail-callbacks.c: Don't segfault if a default account doesn't
exist.
svn path=/trunk/; revision=7302
Diffstat (limited to 'mail/mail-config-druid.c')
-rw-r--r-- | mail/mail-config-druid.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/mail/mail-config-druid.c b/mail/mail-config-druid.c index f1af22136a..82503ca542 100644 --- a/mail/mail-config-druid.c +++ b/mail/mail-config-druid.c @@ -491,7 +491,7 @@ transport_check (MailConfigDruid *druid) const CamelProvider *prov = druid->transport_provider; gboolean next_sensitive = TRUE; - if (prov->url_flags & CAMEL_URL_NEED_HOST) + if (prov && prov->url_flags & CAMEL_URL_NEED_HOST) next_sensitive = gtk_entry_get_text (druid->outgoing_hostname) != NULL; gnome_druid_set_buttons_sensitive (druid->druid, TRUE, next_sensitive, TRUE); @@ -631,7 +631,7 @@ set_defaults (MailConfigDruid *druid) /* construct incoming/outgoing option menus */ stores = gtk_menu_new (); transports = gtk_menu_new (); - druid->providers = camel_session_list_providers (session, FALSE); + druid->providers = camel_session_list_providers (session, TRUE); l = druid->providers; while (l) { CamelProvider *provider = l->data; @@ -674,14 +674,14 @@ set_defaults (MailConfigDruid *druid) l = l->next; } + gtk_option_menu_set_menu (druid->incoming_type, stores); + gtk_option_menu_set_menu (druid->outgoing_type, transports); + if (fstore) gtk_signal_emit_by_name (GTK_OBJECT (fstore), "activate", druid); if (ftransport) gtk_signal_emit_by_name (GTK_OBJECT (ftransport), "activate", druid); - - gtk_option_menu_set_menu (druid->incoming_type, stores); - gtk_option_menu_set_menu (druid->outgoing_type, transports); } static gboolean @@ -760,6 +760,7 @@ construct (MailConfigDruid *druid) /* set window title */ gtk_window_set_title (GTK_WINDOW (druid), _("Evolution Account Wizard")); gtk_window_set_policy (GTK_WINDOW (druid), FALSE, TRUE, TRUE); + gtk_window_set_modal (GTK_WINDOW (druid), TRUE); /* attach to druid page signals */ i = 0; |