diff options
author | Stefano Karapetsas <[email protected]> | 2013-10-11 17:09:37 +0200 |
---|---|---|
committer | Stefano Karapetsas <[email protected]> | 2013-10-11 17:09:37 +0200 |
commit | 5df7e21297fa89637b5b14a6befba0d4e4795dcb (patch) | |
tree | 74e1d35359dcd27c5987c0ba8ad98f2e8a3d2c05 | |
parent | e0fc981d66374cbc0a3aacc59d9157b9afae6676 (diff) | |
download | mate-menus-5df7e21297fa89637b5b14a6befba0d4e4795dcb.tar.bz2 mate-menus-5df7e21297fa89637b5b14a6befba0d4e4795dcb.tar.xz |
Fix g_type_init deprecation
-rw-r--r-- | libmenu/menu-monitor.c | 4 |
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); |