Commit 0f6c5717 authored by Simon Feltman's avatar Simon Feltman
Browse files

Add marshalling of GI_TYPE_TAG_VOID held in a GValue to int

Replace assertion for this case with a simple marshalling of the
pointer value to a Python int. While not particularly useful
this allows some callbacks in WebKit to function without causing
a segfault.

https://bugzilla.gnome.org/show_bug.cgi?id=694233
parent e0084e7e
......@@ -1899,8 +1899,8 @@ _pygi_argument_from_g_value(const GValue *value,
arg.v_pointer = g_value_get_boxed (value);
break;
case GI_TYPE_TAG_VOID:
g_critical("Converting of type '%s' is not implemented", g_type_tag_to_string(type_tag));
g_assert_not_reached();
arg.v_pointer = g_value_get_pointer (value);
break;
}
return arg;
......
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