diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2003-06-10 02:18:33 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2003-06-10 02:18:33 +0800 |
commit | a9329a4a2ef2a1f855e042ee3fa9219f22559926 (patch) | |
tree | 6f0b18a73285d22c5fae6b9aa8ef51545eb2cc59 /composer/e-msg-composer-hdrs.c | |
parent | c67d63acbaabca31297960e29725a9ef3224d327 (diff) | |
download | gsoc2013-evolution-a9329a4a2ef2a1f855e042ee3fa9219f22559926.tar.gz gsoc2013-evolution-a9329a4a2ef2a1f855e042ee3fa9219f22559926.tar.zst gsoc2013-evolution-a9329a4a2ef2a1f855e042ee3fa9219f22559926.zip |
Same as the rest. (setup_ui): We didn't even seem to be using the gconf
2003-05-21 Jeffrey Stedfast <fejj@ximian.com>
* e-msg-composer.c (composer_get_default_charset_setting): Same as
the rest.
(setup_ui): We didn't even seem to be using the gconf client
here. Removed.
(e_msg_composer_load_config): Unref the gconf client after we're
finished.
(e_msg_composer_new): Same.
(e_msg_composer_new_post): Here too.
(e_msg_composer_set_view_from): And here.
(e_msg_composer_set_view_replyto): And here.
(e_msg_composer_set_view_cc): Here too.
(e_msg_composer_set_view_bcc): Again here.
* e-msg-composer-hdrs.c (create_from_optionmenu): Same as below.
(e_msg_composer_hdrs_set_from_account): Here too.
* e-msg-composer-attachment-bar.c (get_default_charset): Unref the
gconf client.
svn path=/trunk/; revision=21391
Diffstat (limited to 'composer/e-msg-composer-hdrs.c')
-rw-r--r-- | composer/e-msg-composer-hdrs.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/composer/e-msg-composer-hdrs.c b/composer/e-msg-composer-hdrs.c index f81914160f..344810ff83 100644 --- a/composer/e-msg-composer-hdrs.c +++ b/composer/e-msg-composer-hdrs.c @@ -308,6 +308,7 @@ create_from_optionmenu (EMsgComposerHdrs *hdrs) gconf = gconf_client_get_default (); uid = gconf_client_get_string (gconf, "/apps/evolution/mail/default_account", NULL); + g_object_unref (gconf); /* Make list of account email addresses */ addresses = g_ptr_array_new (); @@ -1009,10 +1010,11 @@ e_msg_composer_hdrs_set_from_account (EMsgComposerHdrs *hdrs, omenu = GTK_OPTION_MENU (e_msg_composer_hdrs_get_from_omenu (hdrs)); - gconf = gconf_client_get_default (); - - if (!account_name) + if (!account_name) { + gconf = gconf_client_get_default (); uid = gconf_client_get_string (gconf, "/apps/evolution/mail/default_account", NULL); + g_object_unref (gconf); + } /* find the item that represents the account and activate it */ l = hdrs->priv->from_options; |