aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2011-05-06 03:09:53 +0800
committerMatthew Barnes <mbarnes@redhat.com>2011-05-06 03:20:23 +0800
commitf967ad1dcbe459b9b4f9ae84cf26a1720b81f210 (patch)
tree25f5b5034a8d05560c5dade4811b077296482b8a /mail
parent405c6782b6c43d24397457be0b4c20780501a969 (diff)
downloadgsoc2013-evolution-f967ad1dcbe459b9b4f9ae84cf26a1720b81f210.tar
gsoc2013-evolution-f967ad1dcbe459b9b4f9ae84cf26a1720b81f210.tar.gz
gsoc2013-evolution-f967ad1dcbe459b9b4f9ae84cf26a1720b81f210.tar.bz2
gsoc2013-evolution-f967ad1dcbe459b9b4f9ae84cf26a1720b81f210.tar.lz
gsoc2013-evolution-f967ad1dcbe459b9b4f9ae84cf26a1720b81f210.tar.xz
gsoc2013-evolution-f967ad1dcbe459b9b4f9ae84cf26a1720b81f210.tar.zst
gsoc2013-evolution-f967ad1dcbe459b9b4f9ae84cf26a1720b81f210.zip
EMAccountEditor: Fix a runtime warning.
Before selecting a URI in the EMFolderSelectionButton for Drafts and Sent folders, install an EMailSession in each button which is needed for parsing URIs.
Diffstat (limited to 'mail')
-rw-r--r--mail/em-account-editor.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/mail/em-account-editor.c b/mail/em-account-editor.c
index 1cbc635cea..a535227b9c 100644
--- a/mail/em-account-editor.c
+++ b/mail/em-account-editor.c
@@ -1109,10 +1109,15 @@ emae_account_folder (EMAccountEditor *emae, const gchar *name, gint item, gint d
{
EAccount *account;
EMFolderSelectionButton *folder;
+ EMailSession *session;
const gchar *uri;
account = em_account_editor_get_modified_account (emae);
+ session = em_account_editor_get_session (emae);
+
folder = (EMFolderSelectionButton *)e_builder_get_widget (builder, name);
+ em_folder_selection_button_set_session (folder, session);
+
uri = e_account_get_string (account, item);
if (uri != NULL) {
em_folder_selection_button_set_selection (folder, uri);
@@ -3044,14 +3049,12 @@ emae_defaults_page (EConfig *ec, EConfigItem *item, GtkWidget *parent, GtkWidget
emae, "drafts_button",
E_ACCOUNT_DRAFTS_FOLDER_URI,
E_MAIL_LOCAL_FOLDER_DRAFTS, builder);
- em_folder_selection_button_set_session (button, session);
priv->drafts_folder_button = GTK_BUTTON (button);
button = emae_account_folder (
emae, "sent_button",
E_ACCOUNT_SENT_FOLDER_URI,
E_MAIL_LOCAL_FOLDER_SENT, builder);
- em_folder_selection_button_set_session (button, session);
priv->sent_folder_button = GTK_BUTTON (button);
widget = e_builder_get_widget (builder, "trash_folder_check");