[recipes] Repopulate a list page when going back to it



commit 8564440cf3f66e3987393758c4bd6f093f7b14e4
Author: Matthias Clasen <mclasen redhat com>
Date:   Wed Jan 4 06:58:49 2017 -0500

    Repopulate a list page when going back to it
    
    Otherwise, the chef page comes up without recipes when going
    back to it.

 src/gr-window.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/gr-window.c b/src/gr-window.c
index 9d51a5c..6bae31a 100644
--- a/src/gr-window.c
+++ b/src/gr-window.c
@@ -211,7 +211,10 @@ visible_page_changed (GrWindow *window)
                 gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (window->search_button), FALSE);
                 g_signal_handlers_unblock_by_func (window->search_bar, search_changed, window);
         }
-        if (strcmp (visible, "list") != 0) {
+        if (strcmp (visible, "list") == 0) {
+                gr_list_page_repopulate (GR_LIST_PAGE (window->list_page));
+        }
+        else {
                 gr_list_page_clear (GR_LIST_PAGE (window->list_page));
         }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]