gtk-inspector: size-groups.c: Fix build on pre-C99

Declare variables at the top of the block.
This commit is contained in:
Chun-wei Fan 2014-07-16 17:58:20 +08:00
parent fffd58fca8
commit 64e5d6ee3a

View File

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