Commit efcb4b0b authored by Alberto Mardegan's avatar Alberto Mardegan Committed by Martin Pitt
Browse files

Support marshalling GI_TYPE_TAG_INTERFACE

Marshalling of interfaces got broken with commit
7746d218.

Also, do not abort on unsupported types, but log a critical failure and
continue.

https://bugzilla.gnome.org/show_bug.cgi?id=668903
parent 8d85d663
......@@ -1066,9 +1066,10 @@ _pygi_arg_to_hash_pointer (const GIArgument *arg,
return GINT_TO_POINTER(arg->v_int32);
case GI_TYPE_TAG_UTF8:
case GI_TYPE_TAG_FILENAME:
case GI_TYPE_TAG_INTERFACE:
return arg->v_pointer;
default:
g_assert_not_reached();
g_critical("Unsupported type %s", g_type_tag_to_string(type_tag));
return arg->v_pointer;
}
}
......
......@@ -521,9 +521,10 @@ _pygi_hash_pointer_to_arg (GIArgument *arg,
break;
case GI_TYPE_TAG_UTF8:
case GI_TYPE_TAG_FILENAME:
case GI_TYPE_TAG_INTERFACE:
break;
default:
g_assert_not_reached();
g_critical("Unsupported type %s", g_type_tag_to_string(type_tag));
}
}
......
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