inspector: Hide the size-groups tab when empty

This commit is contained in:
Matthias Clasen 2014-11-08 21:30:12 -05:00
parent 0c20ba7dcb
commit 9a84d8a261

View File

@ -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;