summaryrefslogtreecommitdiff
path: root/src/gpm-statistics.c
diff options
context:
space:
mode:
authorStefano Karapetsas <[email protected]>2013-07-24 19:59:05 +0200
committerStefano Karapetsas <[email protected]>2013-07-24 19:59:05 +0200
commit3be92767b85acabf1f30e010cca425d322b89de2 (patch)
treea2b95e572dad332a349cc9b17c1c7f2dac33499c /src/gpm-statistics.c
parent147f55213c2592b118d16bb813041768769cf61b (diff)
downloadmate-power-manager-3be92767b85acabf1f30e010cca425d322b89de2.tar.bz2
mate-power-manager-3be92767b85acabf1f30e010cca425d322b89de2.tar.xz
Code improvements and deprecation fixesmate-power-manager-1.6.2
Diffstat (limited to 'src/gpm-statistics.c')
-rw-r--r--src/gpm-statistics.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gpm-statistics.c b/src/gpm-statistics.c
index 4813d1f..98b5632 100644
--- a/src/gpm-statistics.c
+++ b/src/gpm-statistics.c
@@ -1564,13 +1564,14 @@ main (int argc, char *argv[])
bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
textdomain (GETTEXT_PACKAGE);
-#if GLIB_CHECK_VERSION(2,32,0)
-#else
+#if !GLIB_CHECK_VERSION(2,32,0)
if (! g_thread_supported ())
g_thread_init (NULL);
#endif
dbus_g_thread_init ();
+#if !GLIB_CHECK_VERSION(2,36,0)
g_type_init ();
+#endif
context = g_option_context_new (NULL);
/* TRANSLATORS: the program name */