From 5df7e21297fa89637b5b14a6befba0d4e4795dcb Mon Sep 17 00:00:00 2001 From: Stefano Karapetsas Date: Fri, 11 Oct 2013 17:09:37 +0200 Subject: Fix g_type_init deprecation --- libmenu/menu-monitor.c | 4 ++++ 1 file changed, 4 insertions(+) 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); -- cgit v1.2.1