[gnome-software] Fix displaying the info bar for the Shell Extensions category



commit d129f858f0ca356556ea13ff7746fcb971214d85
Author: Joaquim Rocha <jrocha endlessm com>
Date:   Sun Aug 13 17:57:30 2017 +0100

    Fix displaying the info bar for the Shell Extensions category
    
    The name that was being checked in order to set the info bar as visible
    was not the right one anymore. This patch uses the right name thus
    fixing this issue.

 src/gs-category-page.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/gs-category-page.c b/src/gs-category-page.c
index a05605b..dccadc6 100644
--- a/src/gs-category-page.c
+++ b/src/gs-category-page.c
@@ -130,8 +130,8 @@ gs_category_page_reload (GsPage *page)
                 gs_category_get_id (self->subcategory));
 
        /* show the shell extensions header */
-       if (g_strcmp0 (gs_category_get_id (self->category), "Addon") == 0 &&
-           g_strcmp0 (gs_category_get_id (self->subcategory), "ShellExtension") == 0) {
+       if (g_strcmp0 (gs_category_get_id (self->category), "addons") == 0 &&
+           g_strcmp0 (gs_category_get_id (self->subcategory), "shell-extensions") == 0) {
                gtk_widget_set_visible (self->infobar_category_shell_extensions, TRUE);
        } else {
                gtk_widget_set_visible (self->infobar_category_shell_extensions, FALSE);


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