From 7a72f6eb6a4cfcf636760c6a6efb24ab2fb278c9 Mon Sep 17 00:00:00 2001 From: infirit Date: Tue, 16 Dec 2014 12:17:49 +0100 Subject: Add back Glib 2.32 support --- configure.ac | 2 +- shell/ev-daemon.c | 5 +++++ thumbnailer/atril-thumbnailer.c | 4 ++++ 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index c4fa1d7a..4c4c51fc 100644 --- a/configure.ac +++ b/configure.ac @@ -132,7 +132,7 @@ AC_MSG_RESULT([$with_gtk]) dnl Specify required versions of dependencies CAIRO_REQUIRED=1.9.10 -GLIB_REQUIRED=2.36.0 +GLIB_REQUIRED=2.32.0 LIBSECRET_REQUIRED=0.5 MATEDESKTOP_REQUIRED=1.9.0 diff --git a/shell/ev-daemon.c b/shell/ev-daemon.c index c242e550..9f41df5d 100644 --- a/shell/ev-daemon.c +++ b/shell/ev-daemon.c @@ -521,6 +521,11 @@ main (gint argc, gchar **argv) g_set_prgname ("atril-daemon"); +#if !GLIB_CHECK_VERSION (2, 36, 0) + g_type_init (); +#endif + + loop = g_main_loop_new (NULL, FALSE); pending_invocations = g_hash_table_new_full (g_str_hash, diff --git a/thumbnailer/atril-thumbnailer.c b/thumbnailer/atril-thumbnailer.c index c3288595..ffc8e327 100644 --- a/thumbnailer/atril-thumbnailer.c +++ b/thumbnailer/atril-thumbnailer.c @@ -293,6 +293,10 @@ main (int argc, char *argv[]) input = file_arguments[0]; output = file_arguments[1]; +#if !GLIB_CHECK_VERSION (2, 36, 0) + g_type_init (); +#endif + if (!ev_init ()) return -1; -- cgit v1.2.1