diff options
author | Marco Trevisan (Treviño) <mail@3v1n0.net> | 2022-04-27 20:18:48 +0200 |
---|---|---|
committer | Marco Trevisan (Treviño) <mail@3v1n0.net> | 2022-04-27 20:18:48 +0200 |
commit | 6e871a4047b93f2e2c376e63bcbba0feb993e41f (patch) | |
tree | 4b554119f5bc0b857e0aa290cd2298705fd2407a | |
parent | 59553a5af275ad449335da8fdda43ee1ee709d2a (diff) | |
download | libnotify-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.c | 2 | ||||
-rw-r--r-- | tests/test-error.c | 2 | ||||
-rw-r--r-- | tests/test-replace.c | 2 | ||||
-rw-r--r-- | tools/notify-send.c | 2 |
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 |