[gnome-software/1307-installed-page-empty-sections-not-hidden] gs-installed-page: Correct update_group_visibility_cb()
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/1307-installed-page-empty-sections-not-hidden] gs-installed-page: Correct update_group_visibility_cb()
- Date: Wed, 28 Jul 2021 16:24:26 +0000 (UTC)
commit fe2a010040f8042a3df9114c2db8ac540ec96dc2
Author: Milan Crha <mcrha redhat com>
Date: Wed Jul 28 18:20:26 2021 +0200
gs-installed-page: Correct update_group_visibility_cb()
The group should be hidden, if its list box is empty, not if
the group is empty, because the group always contains its list box.
src/gs-installed-page.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/src/gs-installed-page.c b/src/gs-installed-page.c
index e1149b8ec..3291050c9 100644
--- a/src/gs-installed-page.c
+++ b/src/gs-installed-page.c
@@ -638,11 +638,13 @@ gs_installed_page_dispose (GObject *object)
}
static void
-update_group_visibility_cb (GtkWidget *group)
+update_group_visibility_cb (GtkWidget *group,
+ GtkWidget *widget,
+ GtkWidget *list_box)
{
g_autoptr(GList) children = NULL;
- children = gtk_container_get_children (GTK_CONTAINER (group));
+ children = gtk_container_get_children (GTK_CONTAINER (list_box));
gtk_widget_set_visible (group, children != NULL);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]