[gnome-software/gnome-3-30] overview page: Clear featured dots when resetting featured apps



commit 92b9d46a8c6bf30a74d5533b0d74bbae41d08cda
Author: Robert Ancell <robert ancell canonical com>
Date:   Wed Aug 1 16:42:45 2018 +1200

    overview page: Clear featured dots when resetting featured apps

 src/gs-overview-page.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/src/gs-overview-page.c b/src/gs-overview-page.c
index e9a63a2b..ad80d4b6 100644
--- a/src/gs-overview-page.c
+++ b/src/gs-overview-page.c
@@ -479,6 +479,8 @@ gs_overview_page_get_featured_cb (GObject *source_object,
 
        gtk_widget_hide (priv->featured_heading);
        gs_container_remove_all (GTK_CONTAINER (priv->stack_featured));
+       gtk_widget_hide (priv->box_featured_switcher);
+       gs_container_remove_all (GTK_CONTAINER (priv->box_featured_switcher));
        if (list == NULL) {
                g_warning ("failed to get featured apps: %s",
                           error->message);
@@ -495,7 +497,6 @@ gs_overview_page_get_featured_cb (GObject *source_object,
                gs_app_list_filter (list, filter_category, priv->category_of_day);
                gs_app_list_randomize (list);
        }
-
        for (guint i = 0; i < gs_app_list_length (list); i++) {
                GsApp *app = gs_app_list_index (list, i);
                GtkWidget *event_box;


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