Update summary view status after "Find all"
authorRicardo Mones <ricardo@mones.org>
Sat, 16 May 2015 10:21:07 +0000 (12:21 +0200)
committerRicardo Mones <ricardo@mones.org>
Sat, 16 May 2015 10:21:07 +0000 (12:21 +0200)
In search messages dialog (Edit/Search folder...) pressing "Find all"
left the summary view status empty regardless of the result.
The status of the resulting selection when matching messages are found
is displayed now. If no message is matched it remains empty as before.

src/summary_search.c
src/summaryview.c
src/summaryview.h

index a085520497af86cc131e34fd2bd348620c580a9d..5e9c546b079cb6bd665c2f8250bd0d8bd2facd1e 100644 (file)
@@ -840,7 +840,7 @@ exit:
        summary_hide_stop_button();
        main_window_cursor_normal(summaryview->mainwin);
        if (search_all) {
-               summary_thaw(summaryview);
+               summary_thaw_with_status(summaryview);
        }
        summary_unlock(summaryview);
 }
index b3b14476c14f099d45e14828ba6d3eb8a616d6bd..01d284a1cd6010f3bf044afd20318f17f0d9e334 100644 (file)
@@ -461,6 +461,14 @@ void summary_thaw(SummaryView *summaryview)
                gtk_cmclist_thaw(GTK_CMCLIST(summaryview->ctree));
 }
 
+void summary_thaw_with_status(SummaryView *summaryview)
+{
+       if (summaryview) {
+               summary_status_show(summaryview);
+               gtk_cmclist_thaw(GTK_CMCLIST(summaryview->ctree));
+       }
+}
+
 void summary_grab_focus(SummaryView *summaryview)
 {
        if (summaryview)
index 140c410b70cff6b7e106e59626768db447182092..d4b2332e22b2de5f5b331c3b87f4eae5766c90ac 100644 (file)
@@ -186,6 +186,7 @@ void summary_lock             (SummaryView          *summaryview);
 void summary_unlock              (SummaryView          *summaryview);
 void summary_freeze              (SummaryView          *summaryview);
 void summary_thaw                (SummaryView          *summaryview);
+void summary_thaw_with_status    (SummaryView          *summaryview);
 void summary_grab_focus                  (SummaryView          *summaryview);
 GtkWidget *summary_get_main_widget(SummaryView                 *summaryview);
 gboolean summary_is_locked       (SummaryView          *summaryview);