modest_folder_view_show_non_move_folders (MODEST_FOLDER_VIEW (folder_view), TRUE);
modest_folder_view_set_style (MODEST_FOLDER_VIEW (folder_view), MODEST_FOLDER_VIEW_STYLE_SHOW_ALL);
modest_folder_view_set_filter (MODEST_FOLDER_VIEW (folder_view), MODEST_FOLDER_VIEW_FILTER_HIDE_FOLDERS);
+ modest_folder_view_unset_filter (MODEST_FOLDER_VIEW (folder_view), MODEST_FOLDER_VIEW_FILTER_HIDE_LOCAL_FOLDERS);
hildon_pannable_area_jump_to (HILDON_PANNABLE_AREA (pannable), 0, 0);
g_object_set_data (G_OBJECT (dialog), MOVE_TO_DIALOG_SHOWING_FOLDERS, GINT_TO_POINTER (FALSE));
if (modest_tny_account_is_virtual_local_folders (account)) {
account_id = "";
selection_label_text = g_strconcat (_("TODO: local folders"), "/", NULL);
+ } else if (modest_tny_account_is_memory_card_account (account)) {
+ account_id = "";
+ selection_label_text = g_strconcat (_("TODO: MMC ACCOUNT"), "/", NULL);
} else {
account_id = tny_account_get_id (account);
selection_label_text = g_strconcat (tny_account_get_name (account), "/", NULL);
+ modest_folder_view_set_filter (MODEST_FOLDER_VIEW (folder_view),
+ MODEST_FOLDER_VIEW_FILTER_HIDE_LOCAL_FOLDERS);
}
gtk_label_set_text (GTK_LABEL (selection_label), selection_label_text);
g_free (selection_label_text);
return FALSE;
}
+ if (retval && (priv->filter & MODEST_FOLDER_VIEW_FILTER_HIDE_LOCAL_FOLDERS)) {
+ if (TNY_IS_FOLDER (instance) && !modest_tny_folder_store_is_remote (TNY_FOLDER_STORE (instance)))
+ return FALSE;
+ }
+
if (retval && (priv->filter & MODEST_FOLDER_VIEW_FILTER_CAN_HAVE_FOLDERS)) {
if (TNY_IS_FOLDER (instance)) {
/* Check folder rules */
MODEST_FOLDER_VIEW_FILTER_DELETABLE = 1 << 4,
MODEST_FOLDER_VIEW_FILTER_HIDE_ACCOUNTS = 1 << 5,
MODEST_FOLDER_VIEW_FILTER_HIDE_FOLDERS = 1 << 6,
+ MODEST_FOLDER_VIEW_FILTER_HIDE_LOCAL_FOLDERS = 1 << 7,
} ModestFolderViewFilter;
typedef struct _ModestFolderView ModestFolderView;