[gnome-software/gnome-3-10] Never show two 'Addon' headers in the installed panel
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/gnome-3-10] Never show two 'Addon' headers in the installed panel
- Date: Mon, 25 Nov 2013 16:16:50 +0000 (UTC)
commit ab10c1bbdedb105863d2f83d386822ff977b696b
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 c0d44ec..2073ecb 100644
--- a/src/gs-shell-installed.c
+++ b/src/gs-shell-installed.c
@@ -374,15 +374,9 @@ gs_shell_installed_list_header_func (GtkListBoxRow *row,
{
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;
/* set new */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]