aboutsummaryrefslogtreecommitdiff
path: root/src/messages-service.c
diff options
context:
space:
mode:
authorSergio Schvezov <sergio.schvezov@canonical.com>2013-03-22 16:54:38 -0300
committerSergio Schvezov <sergio.schvezov@canonical.com>2013-03-22 16:54:38 -0300
commit5e3abf725e0628673c1bb16869edc67dfa7e2729 (patch)
tree5d6bd2d445d4280280f8f1a24d805c3ed412105f /src/messages-service.c
parent8fd0c5cf4246c6788024212d794a3f3f8741d2ed (diff)
downloadayatana-indicator-messages-5e3abf725e0628673c1bb16869edc67dfa7e2729.tar.gz
ayatana-indicator-messages-5e3abf725e0628673c1bb16869edc67dfa7e2729.tar.bz2
ayatana-indicator-messages-5e3abf725e0628673c1bb16869edc67dfa7e2729.zip
Adding glib version guard to g_type_init
Diffstat (limited to 'src/messages-service.c')
-rw-r--r--src/messages-service.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/messages-service.c b/src/messages-service.c
index c2ca1a0..5f320fc 100644
--- a/src/messages-service.c
+++ b/src/messages-service.c
@@ -130,7 +130,9 @@ main (int argc, char ** argv)
GBusNameOwnerFlags flags;
/* Glib init */
+#if G_ENCODE_VERSION(GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION) <= GLIB_VERSION_2_34
g_type_init();
+#endif
mainloop = g_main_loop_new (NULL, FALSE);