aboutsummaryrefslogtreecommitdiffstats
path: root/mail/e-mail-reader.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/e-mail-reader.c
parent05f73c28429519681a1983a61245df080b6b9ef5 (diff)
downloadgsoc2013-evolution-a7da50c849f80793faf1c2ab8f55cc89fa3bcb18.tar.gz
gsoc2013-evolution-a7da50c849f80793faf1c2ab8f55cc89fa3bcb18.tar.zst
gsoc2013-evolution-a7da50c849f80793faf1c2ab8f55cc89fa3bcb18.zip
EMFolderSelector: Add a "model" construct-only property.
Diffstat (limited to 'mail/e-mail-reader.c')
-rw-r--r--mail/e-mail-reader.c14
1 files changed, 11 insertions, 3 deletions
diff --git a/mail/e-mail-reader.c b/mail/e-mail-reader.c
index 313e0f5acc..fad5415c5e 100644
--- a/mail/e-mail-reader.c
+++ b/mail/e-mail-reader.c
@@ -287,6 +287,7 @@ action_mail_copy_cb (GtkAction *action,
EMailSession *session;
EMFolderSelector *selector;
EMFolderTree *folder_tree;
+ EMFolderTreeModel *model;
GtkWidget *dialog;
GtkWindow *window;
GPtrArray *uids;
@@ -299,8 +300,11 @@ action_mail_copy_cb (GtkAction *action,
window = e_mail_reader_get_window (reader);
uids = e_mail_reader_get_selected_uids (reader);
+ model = em_folder_tree_model_get_default ();
+
dialog = em_folder_selector_new (
- window, backend, EM_FOLDER_SELECTOR_CAN_CREATE,
+ window, backend, model,
+ EM_FOLDER_SELECTOR_CAN_CREATE,
_("Copy to Folder"), NULL, _("C_opy"));
selector = EM_FOLDER_SELECTOR (dialog);
@@ -789,20 +793,24 @@ action_mail_move_cb (GtkAction *action,
EMailSession *session;
EMFolderSelector *selector;
EMFolderTree *folder_tree;
+ EMFolderTreeModel *model;
GtkWidget *dialog;
GtkWindow *window;
GPtrArray *uids;
const gchar *uri;
backend = e_mail_reader_get_backend (reader);
+ session = e_mail_backend_get_session (backend);
+
folder = e_mail_reader_get_folder (reader);
uids = e_mail_reader_get_selected_uids (reader);
window = e_mail_reader_get_window (reader);
- session = e_mail_backend_get_session (backend);
+ model = em_folder_tree_model_get_default ();
dialog = em_folder_selector_new (
- window, backend, EM_FOLDER_SELECTOR_CAN_CREATE,
+ window, backend, model,
+ EM_FOLDER_SELECTOR_CAN_CREATE,
_("Move to Folder"), NULL, _("_Move"));
selector = EM_FOLDER_SELECTOR (dialog);