diff options
Diffstat (limited to 'mail/em-filter-folder-element.c')
-rw-r--r-- | mail/em-filter-folder-element.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/mail/em-filter-folder-element.c b/mail/em-filter-folder-element.c index a95a4dd88d..61051106d1 100644 --- a/mail/em-filter-folder-element.c +++ b/mail/em-filter-folder-element.c @@ -33,11 +33,12 @@ #include "em-filter-folder-element.h" #include "mail/em-folder-selection-button.h" -#include "mail/mail-component.h" #include "mail/em-utils.h" #include "libedataserver/e-sexp.h" #include "e-util/e-error.h" +#include "e-mail-shell-backend.h" + #define d(x) static gboolean validate(FilterElement *fe); @@ -248,6 +249,7 @@ static GtkWidget * get_widget(FilterElement *fe) { EMFilterFolderElement *ff = (EMFilterFolderElement *)fe; + EMFolderTreeModel *model; GtkWidget *button; char *uri; @@ -255,7 +257,8 @@ get_widget(FilterElement *fe) uri = ff->uri; else uri = em_uri_to_camel (ff->uri); - button = em_folder_selection_button_new(_("Select Folder"), NULL); + model = e_mail_shell_backend_get_folder_tree_model (global_mail_shell_backend); + button = em_folder_selection_button_new (model, _("Select Folder"), NULL); em_folder_selection_button_set_selection(EM_FOLDER_SELECTION_BUTTON(button), uri); if (!ff->store_camel_uri) |