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



commit 64e5d6ee3aa57d0a03b7126710f81100b90faa4e
Author: Chun-wei Fan <fanchunwei src gnome org>
Date:   Wed Jul 16 17:58:20 2014 +0800

    gtk-inspector: size-groups.c: Fix build on pre-C99
    
    Declare variables at the top of the block.

 gtk/inspector/size-groups.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gtk/inspector/size-groups.c b/gtk/inspector/size-groups.c
index 8cec937..422007c 100644
--- a/gtk/inspector/size-groups.c
+++ b/gtk/inspector/size-groups.c
@@ -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)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]