summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2019-06-24 22:04:48 +0000
committerMatthias Clasen <mclasen@redhat.com>2019-06-24 22:04:50 +0000
commit1210d3f5cd127e6a93d5ecc53306496d1f46db3b (patch)
tree8afcf2ba68103623ab1c9f2e68bc88ff73011bc8
parentd1cc8dfd79aba73709b11a8d3994854e9c0f7cfc (diff)
downloadgtk-doc-actions.tar.gz
fixup! scangobj: Introspect GTK4 actionsactions
Avoid an unused variable warning.
-rw-r--r--gtkdoc/scangobj.py6
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,