[gnome-software: 4/5] gs-installed-page: Don’t show a separator at the top of the list
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software: 4/5] gs-installed-page: Don’t show a separator at the top of the list
- Date: Tue, 30 Mar 2021 15:50:43 +0000 (UTC)
commit 40e36fdc91e012c39153541af6b97424088d6daa
Author: Philip Withnall <pwithnall endlessos org>
Date: Thu Mar 18 12:27:20 2021 +0000
gs-installed-page: Don’t show a separator at the top of the list
There’s nothing to separate from.
Signed-off-by: Philip Withnall <pwithnall endlessos org>
Fixes: #1175
src/gs-installed-page.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/gs-installed-page.c b/src/gs-installed-page.c
index 4d7ebe37c..6083da9d0 100644
--- a/src/gs-installed-page.c
+++ b/src/gs-installed-page.c
@@ -486,7 +486,7 @@ gs_installed_page_list_header_func (GtkListBoxRow *row,
{
GsApp *app = gs_app_row_get_app (GS_APP_ROW (row));
GsInstalledPageSection section;
- GtkWidget *header;
+ GtkWidget *header = NULL;
/* Don’t show a header if the REMOVABLE_APPS section is listed first,
* as it looks redundant. (But do show a header if another section is
@@ -506,7 +506,7 @@ gs_installed_page_list_header_func (GtkListBoxRow *row,
header = gs_installed_page_get_section_header (section);
if (header == NULL)
return;
- } else {
+ } else if (before != NULL) {
header = gtk_separator_new (GTK_ORIENTATION_HORIZONTAL);
}
gtk_list_box_row_set_header (row, header);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]