From 6607a7fed10d0309957063cd97b389e0c4818d26 Mon Sep 17 00:00:00 2001 From: Monsta Date: Mon, 12 Jan 2015 17:12:16 +0300 Subject: drop support for GLib < 2.36 Closes https://github.com/mate-desktop/mate-menus/pull/27 --- libmenu/menu-monitor.c | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'libmenu') diff --git a/libmenu/menu-monitor.c b/libmenu/menu-monitor.c index f5b767c..48215c5 100644 --- a/libmenu/menu-monitor.c +++ b/libmenu/menu-monitor.c @@ -186,22 +186,9 @@ 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 - * know we're using it, so we need to init the type system ourselves. */ - g_type_init (); - initted = TRUE; - } -#endif - retval = g_new0 (MenuMonitor, 1); retval->path = g_strdup (path); -- cgit v1.2.1