X-Git-Url: http://git.maemo.org/git/?a=blobdiff_plain;f=src%2Fmodest-ui-actions.c;h=96a8b2d11208a13b4fec7a23155f905d9ed32553;hb=a15fc8e70d5c5bdb119780511ad9410ecdd6b2b7;hp=4d168be6e45890696ef7a7f563ab62dc36bb1df8;hpb=ae6cc4558ea0f5afc82a06376200904ee7b061dd;p=modest diff --git a/src/modest-ui-actions.c b/src/modest-ui-actions.c index 4d168be..96a8b2d 100644 --- a/src/modest-ui-actions.c +++ b/src/modest-ui-actions.c @@ -254,8 +254,8 @@ headers_action_delete (TnyHeader *header, g_object_unref (G_OBJECT (mail_op)); /* refilter treemodel to hide marked-as-deleted rows */ - if (MODEST_IS_HEADER_VIEW (user_data)) - modest_header_view_refilter (MODEST_HEADER_VIEW (user_data)); +/* if (MODEST_IS_HEADER_VIEW (user_data)) */ +/* modest_header_view_refilter (MODEST_HEADER_VIEW (user_data)); */ } void @@ -2170,6 +2170,7 @@ modest_ui_actions_new_folder_error_handler (ModestMailOperation *mail_op, modest_mail_operation_get_error (mail_op)->message);*/ } + void modest_ui_actions_on_new_folder (GtkAction *action, ModestMainWindow *main_window) { @@ -2217,6 +2218,14 @@ modest_ui_actions_on_new_folder (GtkAction *action, ModestMainWindow *main_windo parent_folder, (const gchar *) folder_name); if (new_folder) { + if (main_window) { + folder_view = modest_main_window_get_child_widget (main_window, + MODEST_WIDGET_TYPE_FOLDER_VIEW); + if (folder_view) + modest_folder_view_select_folder (MODEST_FOLDER_VIEW(folder_view), + new_folder, TRUE); + } + g_object_unref (new_folder); finished = TRUE; } @@ -2305,6 +2314,9 @@ modest_ui_actions_on_rename_folder (GtkAction *action, mail_op); modest_header_view_clear (MODEST_HEADER_VIEW (header_view)); + + modest_folder_view_select_folder (MODEST_FOLDER_VIEW(folder_view), + TNY_FOLDER(folder), TRUE); modest_mail_operation_rename_folder (mail_op, TNY_FOLDER (folder),