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 3539881290..3f49796650 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-module.h" + #define d(x) static gboolean validate(FilterElement *fe); @@ -232,11 +233,13 @@ static GtkWidget * get_widget(FilterElement *fe) { EMFilterFolderElement *ff = (EMFilterFolderElement *)fe; + EMFolderTreeModel *model; GtkWidget *button; char *uri; uri = em_uri_to_camel(ff->uri); - button = em_folder_selection_button_new(_("Select Folder"), NULL); + model = e_mail_shell_module_get_folder_tree_model (mail_shell_module); + button = em_folder_selection_button_new (model, _("Select Folder"), NULL); em_folder_selection_button_set_selection(EM_FOLDER_SELECTION_BUTTON(button), uri); g_free(uri); |