aboutsummaryrefslogtreecommitdiffstats
path: root/mail/em-composer-utils.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2011-08-10 10:25:53 +0800
committerMatthew Barnes <mbarnes@redhat.com>2011-08-10 12:14:32 +0800
commitdaa63adeb7ec56169c24651b74a0e96fa4b92fd3 (patch)
treeb545f29f1abc5ee675da80d3a4f04847e0c0b4d0 /mail/em-composer-utils.c
parentc961b23dcd1aca98566b3bc0e1d6fe1d2c6c29fb (diff)
downloadgsoc2013-evolution-daa63adeb7ec56169c24651b74a0e96fa4b92fd3.tar.gz
gsoc2013-evolution-daa63adeb7ec56169c24651b74a0e96fa4b92fd3.tar.zst
gsoc2013-evolution-daa63adeb7ec56169c24651b74a0e96fa4b92fd3.zip
EMFolderSelector: Add a "model" construct-only property.
Diffstat (limited to 'mail/em-composer-utils.c')
-rw-r--r--mail/em-composer-utils.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/mail/em-composer-utils.c b/mail/em-composer-utils.c
index 1a964e7347..529c9c5a1d 100644
--- a/mail/em-composer-utils.c
+++ b/mail/em-composer-utils.c
@@ -2922,6 +2922,7 @@ post_header_clicked_cb (EComposerPostHeader *header,
EShellBackend *shell_backend;
GtkTreeSelection *selection;
EMFolderSelector *selector;
+ EMFolderTreeModel *model;
EMFolderTree *folder_tree;
GtkWidget *dialog;
GList *list;
@@ -2930,10 +2931,13 @@ post_header_clicked_cb (EComposerPostHeader *header,
shell = e_msg_composer_get_shell (composer);
shell_backend = e_shell_get_backend_by_name (shell, "mail");
+ /* FIXME Limit the folder tree to the NNTP account? */
+ model = em_folder_tree_model_get_default ();
+
dialog = em_folder_selector_new (
GTK_WINDOW (composer),
E_MAIL_BACKEND (shell_backend),
- EM_FOLDER_SELECTOR_CAN_CREATE,
+ model, EM_FOLDER_SELECTOR_CAN_CREATE,
_("Posting destination"),
_("Choose folders to post the message to."),
NULL);