[recipes] Repopulate the new recipe list



commit 74132bf7e5c04d1ddcfb828d209190424ad86759
Author: Matthias Clasen <mclasen redhat com>
Date:   Sat Mar 11 14:50:25 2017 -0500

    Repopulate the new recipe list
    
    We forgot to add the case for the 'new recipes' list
    in the repopulate function.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=779912

 src/gr-list-page.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/gr-list-page.c b/src/gr-list-page.c
index 1fc406e..a554f55 100644
--- a/src/gr-list-page.c
+++ b/src/gr-list-page.c
@@ -65,6 +65,7 @@ G_DEFINE_TYPE (GrListPage, gr_list_page, GTK_TYPE_BOX)
 
 static void connect_store_signals (GrListPage *page);
 
+/* keep this function in sync with gr_list_page_repopulate */
 static void
 clear_data (GrListPage *self)
 {
@@ -495,6 +496,7 @@ gr_list_page_populate_from_list (GrListPage *self,
                                           empty ? "empty" : "list");
 }
 
+/* keep function this in sync with clear_data */
 void
 gr_list_page_repopulate (GrListPage *page)
 {
@@ -510,6 +512,8 @@ gr_list_page_repopulate (GrListPage *page)
                 gr_list_page_populate_from_list (page, page->recipes);
         else if (page->all)
                 gr_list_page_populate_from_all (page);
+        else if (page->new)
+                gr_list_page_populate_from_new (page);
 }
 
 static void


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