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
committerRodrigo Moya <rodrigo@gnome-db.org>2011-09-14 20:08:47 +0800
commita7da50c849f80793faf1c2ab8f55cc89fa3bcb18 (patch)
treeed65cd4a311c4d621a78a576794764fbe59ee27f /mail/em-composer-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-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);