diff options
author | Alexander Schwinn <alexxcons@xfce.org> | 2020-12-15 23:08:03 +0100 |
---|---|---|
committer | Alexander Schwinn <alexxcons@xfce.org> | 2020-12-15 23:08:03 +0100 |
commit | 074acf9fc41c08be14c80939049179ed54209ffc (patch) | |
tree | 215085982e94b74b3507fd1244490371b7d71b64 /tumblerd | |
parent | 6e6dbd1ad0bbac5d59901883e31057ef99fb6cf8 (diff) | |
download | tumbler-074acf9fc41c08be14c80939049179ed54209ffc.tar.gz |
Remove GLIB_CHECK_VERSION IFDEFs which are obsolete after glib bump
Current glib minimum is 2.50.0
Diffstat (limited to 'tumblerd')
-rw-r--r-- | tumblerd/main.c | 12 | ||||
-rw-r--r-- | tumblerd/tumbler-utils.h | 8 |
2 files changed, 0 insertions, 20 deletions
diff --git a/tumblerd/main.c b/tumblerd/main.c index 2c2d8da..e93c83b 100644 --- a/tumblerd/main.c +++ b/tumblerd/main.c @@ -267,18 +267,6 @@ main (int argc, /* set the application name. Translators: Don't translate "Tumbler". */ g_set_application_name (_("Tumbler Thumbnailing Service")); -#if !GLIB_CHECK_VERSION (2, 36, 0) - /* initialize the GLib type system */ - g_type_init (); -#endif - -#if !GLIB_CHECK_VERSION (2, 32, 0) - /* initialize threading system */ - if (!g_thread_supported ()) - g_thread_init (NULL); -#endif - - connection = g_bus_get_sync (G_BUS_TYPE_SESSION, NULL, &error); if (error != NULL) diff --git a/tumblerd/tumbler-utils.h b/tumblerd/tumbler-utils.h index 584e845..b319237 100644 --- a/tumblerd/tumbler-utils.h +++ b/tumblerd/tumbler-utils.h @@ -55,19 +55,11 @@ G_BEGIN_DECLS } \ }G_STMT_END -#if GLIB_CHECK_VERSION (2, 32, 0) #define TUMBLER_MUTEX(mtx) GMutex mtx #define tumbler_mutex_free(mtx) g_mutex_clear (&(mtx)) #define tumbler_mutex_lock(mtx) g_mutex_lock (&(mtx)) #define tumbler_mutex_unlock(mtx) g_mutex_unlock (&(mtx)) #define tumbler_mutex_create(mtx) g_mutex_init (&(mtx)) -#else -#define TUMBLER_MUTEX(mtx) GMutex *mtx -#define tumbler_mutex_free(mtx) g_mutex_free (mtx) -#define tumbler_mutex_lock(mtx) g_mutex_lock (mtx) -#define tumbler_mutex_unlock(mtx) g_mutex_unlock (mtx) -#define tumbler_mutex_create(mtx) (mtx) = g_mutex_new () -#endif G_END_DECLS |