diff options
author | Matthias Clasen <mclasen@redhat.com> | 2013-01-07 20:19:49 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2013-01-07 21:06:51 -0500 |
commit | 922c0d4ea0516419422b1d77b5b25176cc72f691 (patch) | |
tree | afe1fae0073c21f2af8dc2e19c5d3904ba18a577 /pango/pangoft2-fontmap.c | |
parent | 4dd5a5e18d4d3184ce4c97e0bcd9e97ebb267831 (diff) | |
download | pango-922c0d4ea0516419422b1d77b5b25176cc72f691.tar.gz |
Don't call g_type_init if GLib is new enough
g_type_init has been deprecated in GLib 2.35.x. Use a
version check here to avoid depending on unstable GLib.
Diffstat (limited to 'pango/pangoft2-fontmap.c')
-rw-r--r-- | pango/pangoft2-fontmap.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pango/pangoft2-fontmap.c b/pango/pangoft2-fontmap.c index 996bbb1f..dbf4980f 100644 --- a/pango/pangoft2-fontmap.c +++ b/pango/pangoft2-fontmap.c @@ -132,8 +132,10 @@ pango_ft2_font_map_new (void) PangoFT2FontMap *ft2fontmap; FT_Error error; +#if !GLIB_CHECK_VERSION (2, 35, 3) /* Make sure that the type system is initialized */ g_type_init (); +#endif ft2fontmap = g_object_new (PANGO_TYPE_FT2_FONT_MAP, NULL); |