diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2014-03-18 04:39:05 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2014-03-27 08:24:33 +0800 |
commit | 5747a285f7d2c857e7e8faec71c6e8a8e0ac6abf (patch) | |
tree | aaa4a5583d5003ebc6a342191fb0995b44c6c1a7 /mail/em-vfolder-editor-rule.c | |
parent | 1b1c33e4b634f89037af6a077212fec3c42b1a0e (diff) | |
download | gsoc2013-evolution-5747a285f7d2c857e7e8faec71c6e8a8e0ac6abf.tar gsoc2013-evolution-5747a285f7d2c857e7e8faec71c6e8a8e0ac6abf.tar.gz gsoc2013-evolution-5747a285f7d2c857e7e8faec71c6e8a8e0ac6abf.tar.bz2 gsoc2013-evolution-5747a285f7d2c857e7e8faec71c6e8a8e0ac6abf.tar.lz gsoc2013-evolution-5747a285f7d2c857e7e8faec71c6e8a8e0ac6abf.tar.xz gsoc2013-evolution-5747a285f7d2c857e7e8faec71c6e8a8e0ac6abf.tar.zst gsoc2013-evolution-5747a285f7d2c857e7e8faec71c6e8a8e0ac6abf.zip |
EMFolderSelector: Add a "can-create" property.
Replaces the EM_FOLDER_SELECTOR_CAN_CREATE flag, and can also be set
after the selector dialog is instantiated.
This makes EMFolderSelector a little more "subclassable".
Diffstat (limited to 'mail/em-vfolder-editor-rule.c')
-rw-r--r-- | mail/em-vfolder-editor-rule.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/mail/em-vfolder-editor-rule.c b/mail/em-vfolder-editor-rule.c index 111a74c0f2..6df9df8c5e 100644 --- a/mail/em-vfolder-editor-rule.c +++ b/mail/em-vfolder-editor-rule.c @@ -377,6 +377,7 @@ source_add (GtkWidget *widget, { EMFolderTree *folder_tree; EMFolderTreeModel *model; + EMFolderSelector *selector; GtkTreeSelection *selection; GtkWidget *dialog; gpointer parent; @@ -388,11 +389,12 @@ source_add (GtkWidget *widget, dialog = em_folder_selector_new ( parent, model, - EM_FOLDER_SELECTOR_CAN_CREATE, _("Add Folder"), NULL, _("_Add")); - folder_tree = em_folder_selector_get_folder_tree ( - EM_FOLDER_SELECTOR (dialog)); + selector = EM_FOLDER_SELECTOR (dialog); + em_folder_selector_set_can_create (selector, TRUE); + + folder_tree = em_folder_selector_get_folder_tree (selector); em_folder_tree_set_excluded (folder_tree, EMFT_EXCLUDE_NOSELECT); |