[gtk-doc/actions] fixup! scangobj: Introspect GTK4 actions



commit 1210d3f5cd127e6a93d5ecc53306496d1f46db3b
Author: Matthias Clasen <mclasen redhat com>
Date:   Mon Jun 24 22:04:48 2019 +0000

    fixup! scangobj: Introspect GTK4 actions
    
    Avoid an unused variable warning.

 gtkdoc/scangobj.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gtkdoc/scangobj.py b/gtkdoc/scangobj.py
index 8b8947b..0289652 100644
--- a/gtkdoc/scangobj.py
+++ b/gtkdoc/scangobj.py
@@ -592,7 +592,6 @@ static void
 output_object_actions (FILE *fp, GType object_type)
 {
   gpointer class;
-  const gchar *object_class_name;
 
   if (!G_TYPE_IS_OBJECT (object_type))
     return;
@@ -601,8 +600,6 @@ output_object_actions (FILE *fp, GType object_type)
   if (!class)
     return;
 
-  object_class_name = g_type_name (object_type);
-
 #ifdef GTK_IS_WIDGET_CLASS
 #if GTK_CHECK_VERSION(3,96,0)
   if (GTK_IS_WIDGET_CLASS (class)) {
@@ -611,6 +608,9 @@ output_object_actions (FILE *fp, GType object_type)
     GType owner;
     const GVariantType *parameter_type;
     const char *property_name;
+    const gchar *object_class_name;
+
+    object_class_name = g_type_name (object_type);
     while (gtk_widget_class_query_action (GTK_WIDGET_CLASS (class),
                                           i,
                                           &owner,


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