summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefano Karapetsas <[email protected]>2013-10-11 17:09:37 +0200
committerStefano Karapetsas <[email protected]>2013-10-11 17:09:37 +0200
commit5df7e21297fa89637b5b14a6befba0d4e4795dcb (patch)
tree74e1d35359dcd27c5987c0ba8ad98f2e8a3d2c05
parente0fc981d66374cbc0a3aacc59d9157b9afae6676 (diff)
downloadmate-menus-5df7e21297fa89637b5b14a6befba0d4e4795dcb.tar.bz2
mate-menus-5df7e21297fa89637b5b14a6befba0d4e4795dcb.tar.xz
Fix g_type_init deprecation
-rw-r--r--libmenu/menu-monitor.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libmenu/menu-monitor.c b/libmenu/menu-monitor.c
index 7e89ae6..f5b767c 100644
--- a/libmenu/menu-monitor.c
+++ b/libmenu/menu-monitor.c
@@ -186,10 +186,13 @@ static gboolean monitor_callback (GFileMonitor* monitor, GFile* child, GFile* ot
static MenuMonitor* register_monitor(const char* path, gboolean is_directory)
{
+#if !GLIB_CHECK_VERSION (2, 36, 0)
static gboolean initted = FALSE;
+#endif
MenuMonitor *retval;
GFile *file;
+#if !GLIB_CHECK_VERSION (2, 36, 0)
if (!initted)
{
/* This is the only place where we're using GObject and the app can't
@@ -197,6 +200,7 @@ static MenuMonitor* register_monitor(const char* path, gboolean is_directory)
g_type_init ();
initted = TRUE;
}
+#endif
retval = g_new0 (MenuMonitor, 1);