[gnome-software] category page: Fix header buttons multiplying



commit 558e2d92263afa184facd7724617034e25f155cc
Author: Kalev Lember <klember redhat com>
Date:   Wed Feb 21 23:39:13 2018 +0100

    category page: Fix header buttons multiplying
    
    Clear out old buttons before adding new ones, otherwise we'll get
    duplicate entries when visiting the page multiple times.
    
    https://gitlab.gnome.org/GNOME/gnome-software/issues/303

 src/gs-category-page.c | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/src/gs-category-page.c b/src/gs-category-page.c
index 2adcdfa5..03957c67 100644
--- a/src/gs-category-page.c
+++ b/src/gs-category-page.c
@@ -425,6 +425,7 @@ gs_category_page_create_filter (GsCategoryPage *self,
        gboolean use_header_filter = gs_category_page_should_use_header_filter (category);
 
        gs_container_remove_all (GTK_CONTAINER (self->category_detail_box));
+       gs_container_remove_all (GTK_CONTAINER (self->header_filter_box));
        gs_container_remove_all (GTK_CONTAINER (self->popover_filter_box));
 
        children = gs_category_get_children (category);


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