aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorHans Petter Jansson <hpj@ximian.com>2003-02-22 08:44:47 +0800
committerHans Petter <hansp@src.gnome.org>2003-02-22 08:44:47 +0800
commit81a5255f6dc6b64bd9befa6c83bafa4a285f72f5 (patch)
tree6843a3ffdac6da4b96761e13ae01eef86134d234 /mail
parent2dd7b84edba6021442f9fe1c1fa5b8c3bb39fc26 (diff)
downloadgsoc2013-evolution-81a5255f6dc6b64bd9befa6c83bafa4a285f72f5.tar
gsoc2013-evolution-81a5255f6dc6b64bd9befa6c83bafa4a285f72f5.tar.gz
gsoc2013-evolution-81a5255f6dc6b64bd9befa6c83bafa4a285f72f5.tar.bz2
gsoc2013-evolution-81a5255f6dc6b64bd9befa6c83bafa4a285f72f5.tar.lz
gsoc2013-evolution-81a5255f6dc6b64bd9befa6c83bafa4a285f72f5.tar.xz
gsoc2013-evolution-81a5255f6dc6b64bd9befa6c83bafa4a285f72f5.tar.zst
gsoc2013-evolution-81a5255f6dc6b64bd9befa6c83bafa4a285f72f5.zip
Don't try to get a FontPrefs control.
2003-02-21 Hans Petter Jansson <hpj@ximian.com> * component-factory.c (factory): Don't try to get a FontPrefs control. * mail-config-factory.c (mail_config_control_factory_cb): Just return NULL if a FontPrefs control was requested. * mail-config.c (mail_config_get_default_account): If no accounts are defined, don't try to set the default account. svn path=/trunk/; revision=19996
Diffstat (limited to 'mail')
-rw-r--r--mail/ChangeLog10
-rw-r--r--mail/component-factory.c2
-rw-r--r--mail/mail-config-factory.c3
-rw-r--r--mail/mail-config.c4
4 files changed, 16 insertions, 3 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index 778f0e26c1..edd6807050 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,3 +1,13 @@
+2003-02-21 Hans Petter Jansson <hpj@ximian.com>
+
+ * component-factory.c (factory): Don't try to get a FontPrefs control.
+
+ * mail-config-factory.c (mail_config_control_factory_cb): Just return
+ NULL if a FontPrefs control was requested.
+
+ * mail-config.c (mail_config_get_default_account): If no accounts
+ are defined, don't try to set the default account.
+
2003-02-21 Dan Winship <danw@ximian.com>
* Makefile.am (libevolution_mail_la_LIBADD): Remove libebook's
diff --git a/mail/component-factory.c b/mail/component-factory.c
index 9783283c81..54a8adabe4 100644
--- a/mail/component-factory.c
+++ b/mail/component-factory.c
@@ -1631,7 +1631,7 @@ factory (BonoboGenericFactory *factory,
else if (strcmp (component_id, MAIL_ACCOUNTS_CONTROL_ID) == 0
|| strcmp (component_id, MAIL_PREFERENCES_CONTROL_ID) == 0
|| strcmp (component_id, MAIL_COMPOSER_PREFS_CONTROL_ID) == 0
- || strcmp (component_id, MAIL_FONT_PREFS_CONTROL_ID) == 0)
+ /* || strcmp (component_id, MAIL_FONT_PREFS_CONTROL_ID) == 0 */)
return mail_config_control_factory_cb (factory, component_id, evolution_shell_client_corba_objref (global_shell_client));
g_warning (FACTORY_ID ": Don't know what to do with %s", component_id);
diff --git a/mail/mail-config-factory.c b/mail/mail-config-factory.c
index bda05e83ad..2748a1473f 100644
--- a/mail/mail-config-factory.c
+++ b/mail/mail-config-factory.c
@@ -90,10 +90,11 @@ mail_config_control_factory_cb (BonoboGenericFactory *factory, const char *compo
prefs = mail_font_prefs_new ();
data->apply = (ApplyFunc) mail_font_prefs_apply;
#endif
+ return NULL;
} else {
g_assert_not_reached ();
}
-
+
data->prefs = prefs;
g_object_ref (prefs);
diff --git a/mail/mail-config.c b/mail/mail-config.c
index 02a72ea672..acb044449c 100644
--- a/mail/mail-config.c
+++ b/mail/mail-config.c
@@ -627,7 +627,9 @@ mail_config_get_default_account (void)
the default */
e_iterator_reset (iter);
account = (EAccount *) e_iterator_get (iter);
- gconf_client_set_string (config->gconf, "/apps/evolution/mail/default_account", account->uid, NULL);
+ if (account)
+ gconf_client_set_string (config->gconf, "/apps/evolution/mail/default_account",
+ account->uid, NULL);
g_object_unref (iter);
return account;