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 a085520..5e9c546 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 b3b1447..01d284a 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 140c410..d4b2332 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);