aboutsummaryrefslogtreecommitdiffstats
path: root/mail/em-folder-selection-button.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-selection-button.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-selection-button.c')
-rw-r--r--mail/em-folder-selection-button.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/mail/em-folder-selection-button.c b/mail/em-folder-selection-button.c
index ec0479dfea..5bdf5d2e68 100644
--- a/mail/em-folder-selection-button.c
+++ b/mail/em-folder-selection-button.c
@@ -239,6 +239,7 @@ folder_selection_button_clicked (GtkButton *button)
EMFolderSelectionButtonPrivate *priv;
EMFolderSelector *selector;
EMFolderTree *folder_tree;
+ EMFolderTreeModel *model;
GtkWidget *dialog;
GtkTreeSelection *selection;
gpointer parent;
@@ -248,8 +249,11 @@ folder_selection_button_clicked (GtkButton *button)
parent = gtk_widget_get_toplevel (GTK_WIDGET (button));
parent = gtk_widget_is_toplevel (parent) ? parent : NULL;
+ model = em_folder_tree_model_get_default ();
+
dialog = em_folder_selector_new (
- parent, priv->backend, EM_FOLDER_SELECTOR_CAN_CREATE,
+ parent, priv->backend, model,
+ EM_FOLDER_SELECTOR_CAN_CREATE,
priv->title, priv->caption, NULL);
selector = EM_FOLDER_SELECTOR (dialog);