[gtk+] inspector: Hide the size-groups tab when empty
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] inspector: Hide the size-groups tab when empty
- Date: Sun, 9 Nov 2014 02:43:53 +0000 (UTC)
commit 9a84d8a26184557801ab8d1b1276798f02af6f6f
Author: Matthias Clasen <mclasen redhat com>
Date: Sat Nov 8 21:30:12 2014 -0500
inspector: Hide the size-groups tab when empty
gtk/inspector/size-groups.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/gtk/inspector/size-groups.c b/gtk/inspector/size-groups.c
index 69d26a2..48e19d2 100644
--- a/gtk/inspector/size-groups.c
+++ b/gtk/inspector/size-groups.c
@@ -282,8 +282,9 @@ gtk_inspector_size_groups_set_object (GtkInspectorSizeGroups *sl,
return;
}
- gtk_widget_show (GTK_WIDGET (sl));
groups = _gtk_widget_get_sizegroups (GTK_WIDGET (object));
+ if (groups)
+ gtk_widget_show (GTK_WIDGET (sl));
for (l = groups; l; l = l->next)
{
GtkSizeGroup *group = l->data;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]