[gnome-software] Never show two 'Addon' headers in the installed panel



commit f6e1c728172826f3417c819f2c467669a7df5d44
Author: Richard Hughes <richard hughsie com>
Date:   Mon Nov 18 17:01:29 2013 +0000

    Never show two 'Addon' headers in the installed panel

 src/gs-shell-installed.c |   12 +++---------
 1 files changed, 3 insertions(+), 9 deletions(-)
---
diff --git a/src/gs-shell-installed.c b/src/gs-shell-installed.c
index 12f65e4..c15c703 100644
--- a/src/gs-shell-installed.c
+++ b/src/gs-shell-installed.c
@@ -493,15 +493,9 @@ gs_shell_installed_list_header_func (GtkListBoxRow *row,
        GtkStyleContext *context;
        GtkWidget *header;
 
-       /* first entry */
-       header = gtk_list_box_row_get_header (row);
-       if (before == NULL) {
-               gtk_list_box_row_set_header (row, NULL);
-               return;
-       }
-
-       /* already set */
-       if (header != NULL)
+       /* reset */
+       gtk_list_box_row_set_header (row, NULL);
+       if (before == NULL)
                return;
 
        /* desktop -> addons */


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