aboutsummaryrefslogtreecommitdiffstats
path: root/mail/em-folder-utils.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2011-08-10 10:25:53 +0800
committerRodrigo Moya <rodrigo@gnome-db.org>2011-09-14 20:08:47 +0800
commita7da50c849f80793faf1c2ab8f55cc89fa3bcb18 (patch)
treeed65cd4a311c4d621a78a576794764fbe59ee27f /mail/em-folder-utils.c
parent05f73c28429519681a1983a61245df080b6b9ef5 (diff)
downloadgsoc2013-evolution-a7da50c849f80793faf1c2ab8f55cc89fa3bcb18.tar
gsoc2013-evolution-a7da50c849f80793faf1c2ab8f55cc89fa3bcb18.tar.gz
gsoc2013-evolution-a7da50c849f80793faf1c2ab8f55cc89fa3bcb18.tar.bz2
gsoc2013-evolution-a7da50c849f80793faf1c2ab8f55cc89fa3bcb18.tar.lz
gsoc2013-evolution-a7da50c849f80793faf1c2ab8f55cc89fa3bcb18.tar.xz
gsoc2013-evolution-a7da50c849f80793faf1c2ab8f55cc89fa3bcb18.tar.zst
gsoc2013-evolution-a7da50c849f80793faf1c2ab8f55cc89fa3bcb18.zip
EMFolderSelector: Add a "model" construct-only property.
Diffstat (limited to 'mail/em-folder-utils.c')
-rw-r--r--mail/em-folder-utils.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/mail/em-folder-utils.c b/mail/em-folder-utils.c
index 4650405274..f43a929064 100644
--- a/mail/em-folder-utils.c
+++ b/mail/em-folder-utils.c
@@ -452,6 +452,7 @@ em_folder_utils_copy_folder (GtkWindow *parent,
GtkWidget *dialog;
EMFolderSelector *selector;
EMFolderTree *folder_tree;
+ EMFolderTreeModel *model;
EMailSession *session;
const gchar *label;
const gchar *title;
@@ -480,8 +481,10 @@ em_folder_utils_copy_folder (GtkWindow *parent,
label = delete ? _("_Move") : _("C_opy");
title = delete ? _("Move Folder To") : _("Copy Folder To");
+ model = em_folder_tree_model_get_default ();
+
dialog = em_folder_selector_new (
- parent, backend,
+ parent, backend, model,
EM_FOLDER_SELECTOR_CAN_CREATE,
title, NULL, label);
@@ -541,6 +544,7 @@ em_folder_utils_create_folder (GtkWindow *parent,
EMailSession *session;
EMFolderSelector *selector;
EMFolderTree *folder_tree;
+ EMFolderTreeModel *model;
CamelStore *store = NULL;
gchar *folder_name = NULL;
GtkWidget *dialog;
@@ -551,8 +555,10 @@ em_folder_utils_create_folder (GtkWindow *parent,
session = e_mail_backend_get_session (backend);
+ model = em_folder_tree_model_get_default ();
+
dialog = em_folder_selector_create_new (
- parent, backend, 0,
+ parent, backend, model, 0,
_("Create Folder"),
_("Specify where to create the folder:"));