diff options
author | Matthias Clasen <mclasen@redhat.com> | 2019-06-24 22:04:48 +0000 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2019-06-24 22:04:50 +0000 |
commit | 1210d3f5cd127e6a93d5ecc53306496d1f46db3b (patch) | |
tree | 8afcf2ba68103623ab1c9f2e68bc88ff73011bc8 | |
parent | d1cc8dfd79aba73709b11a8d3994854e9c0f7cfc (diff) | |
download | gtk-doc-actions.tar.gz |
fixup! scangobj: Introspect GTK4 actionsactions
Avoid an unused variable warning.
-rw-r--r-- | gtkdoc/scangobj.py | 6 |
1 files 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, |