[gobject] Remove hb_language_t workarounds for g-i shortcomings
authorBehdad Esfahbod <behdad@behdad.org>
Wed, 20 May 2015 00:42:30 +0000 (17:42 -0700)
committerBehdad Esfahbod <behdad@behdad.org>
Wed, 20 May 2015 00:42:30 +0000 (17:42 -0700)
Using latest gobject-introspection, I don't seem to be having this
problem anymore:

  https://bugzilla.gnome.org/show_bug.cgi?id=707656

Removing that kludge makes language_t behave more like the way I expect it
in Python.

Also fixes:
https://github.com/behdad/harfbuzz/issues/91

src/hb-gobject-structs.cc
src/hb-gobject-structs.h

index 1289c4b..6bd6336 100644 (file)
@@ -78,4 +78,3 @@ HB_DEFINE_VALUE_TYPE (glyph_info)
 HB_DEFINE_VALUE_TYPE (glyph_position)
 HB_DEFINE_VALUE_TYPE (segment_properties)
 HB_DEFINE_VALUE_TYPE (user_data_key)
-HB_DEFINE_VALUE_TYPE (language)
index 4a88d56..48af088 100644 (file)
@@ -81,14 +81,6 @@ GType hb_gobject_segment_properties_get_type (void);
 GType hb_gobject_user_data_key_get_type (void);
 #define HB_GOBJECT_TYPE_USER_DATA_KEY (hb_gobject_user_data_key_get_type ())
 
-/* Currently gobject-introspection doesn't understand that hb_language_t
- * can be passed by-value.  As such we box it up.  May remove in the
- * future.
- *
- *   https://bugzilla.gnome.org/show_bug.cgi?id=707656
- */
-GType hb_gobject_language_get_type (void);
-#define HB_GOBJECT_TYPE_LANGUAGE (hb_gobject_language_get_type ())
 
 HB_END_DECLS