diff options
Diffstat (limited to 'mail/importers/evolution-mbox-importer.c')
-rw-r--r-- | mail/importers/evolution-mbox-importer.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/mail/importers/evolution-mbox-importer.c b/mail/importers/evolution-mbox-importer.c index 882ce64b25..e44cf57fef 100644 --- a/mail/importers/evolution-mbox-importer.c +++ b/mail/importers/evolution-mbox-importer.c @@ -40,8 +40,11 @@ #include <camel/camel-exception.h> +#include "mail/e-mail-local.h" +#include "mail/e-mail-store.h" #include "mail/e-mail-shell-backend.h" #include "mail/em-folder-selection-button.h" +#include "mail/em-folder-tree-model.h" #include "mail/mail-mt.h" #include "mail-importer.h" @@ -72,21 +75,18 @@ static GtkWidget * mbox_getwidget(EImport *ei, EImportTarget *target, EImportImporter *im) { GtkWidget *hbox, *w; - EMFolderTreeModel *model; - const gchar *local_inbox_folder_uri; + const gchar *local_inbox_uri; - local_inbox_folder_uri = e_mail_shell_backend_get_folder_uri ( - global_mail_shell_backend, E_MAIL_FOLDER_INBOX); - model = e_mail_shell_backend_get_folder_tree_model ( - global_mail_shell_backend); + local_inbox_uri = e_mail_local_get_folder_uri (E_MAIL_FOLDER_INBOX); hbox = gtk_hbox_new(FALSE, 0); w = gtk_label_new(_("Destination folder:")); gtk_box_pack_start((GtkBox *)hbox, w, FALSE, TRUE, 6); - w = em_folder_selection_button_new(model, _("Select folder"), _("Select folder to import into")); - em_folder_selection_button_set_selection((EMFolderSelectionButton *)w, local_inbox_folder_uri); + w = em_folder_selection_button_new( + _("Select folder"), _("Select folder to import into")); + em_folder_selection_button_set_selection((EMFolderSelectionButton *)w, local_inbox_uri); g_signal_connect(w, "selected", G_CALLBACK(folder_selected), target); gtk_box_pack_start((GtkBox *)hbox, w, FALSE, TRUE, 6); |