Commit 17d4e6d9 authored by Christian Hergert's avatar Christian Hergert

signature: handle glib_signal better

parent efc3b79c
......@@ -1165,7 +1165,6 @@ girst_parser_object_get_signature (GirstParserObject *self)
g_autofree gchar *formatted = NULL;
GirstParserObject *return_value;
GirstParserObject *params;
GPtrArray *children;
guint space = 0;
guint begin;
......@@ -1268,6 +1267,10 @@ girst_parser_object_get_signature (GirstParserObject *self)
goto cleanup;
}
if (params != NULL)
{
GPtrArray *children;
children = girst_parser_object_get_children (params);
for (guint i = 0; i < children->len; i++)
......@@ -1294,6 +1297,7 @@ girst_parser_object_get_signature (GirstParserObject *self)
g_string_append_printf (param_str, "%s %s, ", c_type, name);
}
}
if (GIRST_IS_GLIB_SIGNAL (self))
g_string_append (param_str, "gpointer user_data, ");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment