From: Kouhei S. <nu...@co...> - 2017-07-10 15:00:33
|
Kouhei Sutou 2017-07-10 23:59:57 +0900 (Mon, 10 Jul 2017) New Revision: b19b800b7dc53aa5c090a84686a137a842eae62c https://github.com/ruby-gnome2/ruby-gnome2/commit/b19b800b7dc53aa5c090a84686a137a842eae62c Message: gi: use gtype if available Modified files: gobject-introspection/ext/gobject-introspection/rb-gi-struct-info.c Modified: gobject-introspection/ext/gobject-introspection/rb-gi-struct-info.c (+2 -0) =================================================================== --- gobject-introspection/ext/gobject-introspection/rb-gi-struct-info.c 2017-07-10 23:28:57 +0900 (7581053) +++ gobject-introspection/ext/gobject-introspection/rb-gi-struct-info.c 2017-07-10 23:59:57 +0900 (65d65fd) @@ -54,6 +54,8 @@ rb_gi_struct_info_to_ruby(GIStructInfo *info, if (gtype == G_TYPE_VARIANT) { GVariant *variant = object; return rbg_variant_to_ruby(variant); + } else if (gtype != G_TYPE_NONE) { + return BOXED2RVAL(target_object, gtype); } namespace = g_base_info_get_namespace(base_info); |