summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarco Trevisan (Treviño) <mail@3v1n0.net>2022-04-27 20:18:48 +0200
committerMarco Trevisan (Treviño) <mail@3v1n0.net>2022-04-27 20:18:48 +0200
commit6e871a4047b93f2e2c376e63bcbba0feb993e41f (patch)
tree4b554119f5bc0b857e0aa290cd2298705fd2407a
parent59553a5af275ad449335da8fdda43ee1ee709d2a (diff)
downloadlibnotify-6e871a4047b93f2e2c376e63bcbba0feb993e41f.tar.gz
cleanup: Do not use GLIB_CHECK_VERSION
It's not supported by GLib 2.26.0, the minimum version we required
-rw-r--r--libnotify/notify.c2
-rw-r--r--tests/test-error.c2
-rw-r--r--tests/test-replace.c2
-rw-r--r--tools/notify-send.c2
4 files changed, 4 insertions, 4 deletions
diff --git a/libnotify/notify.c b/libnotify/notify.c
index 7f72972..ce5a97b 100644
--- a/libnotify/notify.c
+++ b/libnotify/notify.c
@@ -161,7 +161,7 @@ notify_init (const char *app_name)
notify_set_app_name (app_name);
-#if !GLIB_CHECK_VERSION (2, 36, 0)
+#ifndef GLIB_VERSION_2_36
g_type_init ();
#endif
diff --git a/tests/test-error.c b/tests/test-error.c
index afcb59b..66d7675 100644
--- a/tests/test-error.c
+++ b/tests/test-error.c
@@ -29,7 +29,7 @@ main ()
{
NotifyNotification *n;
-#if !GLIB_CHECK_VERSION (2, 36, 0)
+#ifndef GLIB_VERSION_2_36
g_type_init ();
#endif
diff --git a/tests/test-replace.c b/tests/test-replace.c
index ec7b5fc..5af0c27 100644
--- a/tests/test-replace.c
+++ b/tests/test-replace.c
@@ -28,7 +28,7 @@ main ()
GError *error;
error = NULL;
-#if !GLIB_CHECK_VERSION (2, 36, 0)
+#ifndef GLIB_VERSION_2_36
g_type_init ();
#endif
diff --git a/tools/notify-send.c b/tools/notify-send.c
index 88599bf..6214a40 100644
--- a/tools/notify-send.c
+++ b/tools/notify-send.c
@@ -225,7 +225,7 @@ main (int argc, char *argv[])
setlocale (LC_ALL, "");
-#if !GLIB_CHECK_VERSION (2, 36, 0)
+#ifndef GLIB_VERSION_2_36
g_type_init ();
#endif