diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2011-08-10 10:25:53 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2011-08-10 12:14:32 +0800 |
commit | daa63adeb7ec56169c24651b74a0e96fa4b92fd3 (patch) | |
tree | b545f29f1abc5ee675da80d3a4f04847e0c0b4d0 /mail/em-folder-selection-button.c | |
parent | c961b23dcd1aca98566b3bc0e1d6fe1d2c6c29fb (diff) | |
download | gsoc2013-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-folder-selection-button.c')
-rw-r--r-- | mail/em-folder-selection-button.c | 6 |
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); |