mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-19 00:20:09 +00:00
gtk-inspector: size-groups.c: Fix build on pre-C99
Declare variables at the top of the block.
This commit is contained in:
parent
fffd58fca8
commit
64e5d6ee3a
@ -270,6 +270,8 @@ void
|
||||
gtk_inspector_size_groups_set_object (GtkInspectorSizeGroups *sl,
|
||||
GObject *object)
|
||||
{
|
||||
GSList *groups, *l;
|
||||
|
||||
clear_view (sl);
|
||||
|
||||
if (!GTK_IS_WIDGET (object))
|
||||
@ -278,8 +280,6 @@ gtk_inspector_size_groups_set_object (GtkInspectorSizeGroups *sl,
|
||||
return;
|
||||
}
|
||||
|
||||
GSList *groups, *l;
|
||||
|
||||
gtk_widget_show (GTK_WIDGET (sl));
|
||||
groups = _gtk_widget_get_sizegroups (GTK_WIDGET (object));
|
||||
for (l = groups; l; l = l->next)
|
||||
|
Loading…
Reference in New Issue
Block a user