[evolution] EMAccountEditor: Fix a runtime warning.
- From: Matthew Barnes <mbarnes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] EMAccountEditor: Fix a runtime warning.
- Date: Thu, 5 May 2011 19:21:51 +0000 (UTC)
commit f967ad1dcbe459b9b4f9ae84cf26a1720b81f210
Author: Matthew Barnes <mbarnes redhat com>
Date: Thu May 5 15:09:53 2011 -0400
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.
mail/em-account-editor.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/mail/em-account-editor.c b/mail/em-account-editor.c
index 1cbc635..a535227 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");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]