summaryrefslogtreecommitdiff
path: root/pango-view/viewer-main.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2013-01-07 20:19:49 -0500
committerMatthias Clasen <mclasen@redhat.com>2013-01-07 21:06:51 -0500
commit922c0d4ea0516419422b1d77b5b25176cc72f691 (patch)
treeafe1fae0073c21f2af8dc2e19c5d3904ba18a577 /pango-view/viewer-main.c
parent4dd5a5e18d4d3184ce4c97e0bcd9e97ebb267831 (diff)
downloadpango-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/viewer-main.c')
-rw-r--r--pango-view/viewer-main.c2
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);