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-view | |
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-view')
-rw-r--r-- | pango-view/viewer-main.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pango-view/viewer-main.c b/pango-view/viewer-main.c index 8ff76bbc..525599a7 100644 --- a/pango-view/viewer-main.c +++ b/pango-view/viewer-main.c @@ -47,7 +47,9 @@ main (int argc, int width, height; gpointer surface; +#if !GLIB_CHECK_VERSION (2, 35, 3) g_type_init(); +#endif g_set_prgname ("pango-view"); setlocale (LC_ALL, ""); parse_options (argc, argv); |