summaryrefslogtreecommitdiff
path: root/src/up-main.c
diff options
context:
space:
mode:
authorDenis Washington <denisw@online.de>2011-08-31 22:43:40 +0100
committerRichard Hughes <richard@hughsie.com>2011-08-31 22:43:40 +0100
commit785ecbb6d5f635f7c8076009f696001d2247fd31 (patch)
tree87d1f8c5ea159f47752f04807cc7bd8a6d04b3dc /src/up-main.c
parentcb37dcc2e86ec9b244ab732004f2f020f130aa81 (diff)
downloadupower-785ecbb6d5f635f7c8076009f696001d2247fd31.tar.gz
Use g_unix_signal_add_full() which has been renamed in the unstable GLib branch
Signed-off-by: Richard Hughes <richard@hughsie.com>
Diffstat (limited to 'src/up-main.c')
-rw-r--r--src/up-main.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/up-main.c b/src/up-main.c
index c1e490b..343ce0e 100644
--- a/src/up-main.c
+++ b/src/up-main.c
@@ -41,7 +41,7 @@
#include "up-kbd-backlight.h"
#include "up-wakeups.h"
-#if GLIB_CHECK_VERSION(2,29,4)
+#if GLIB_CHECK_VERSION(2,29,19)
#include <glib-unix.h>
#endif
@@ -92,7 +92,7 @@ out:
return ret;
}
-#if GLIB_CHECK_VERSION(2,29,4)
+#if GLIB_CHECK_VERSION(2,29,19)
/**
* up_main_sigint_cb:
@@ -201,13 +201,13 @@ main (gint argc, gchar **argv)
goto out;
}
-#if GLIB_CHECK_VERSION(2,29,4)
+#if GLIB_CHECK_VERSION(2,29,19)
/* do stuff on ctrl-c */
- g_unix_signal_add_watch_full (SIGINT,
- G_PRIORITY_DEFAULT,
- up_main_sigint_cb,
- loop,
- NULL);
+ g_unix_signal_add_full (G_PRIORITY_DEFAULT,
+ SIGINT,
+ up_main_sigint_cb,
+ loop,
+ NULL);
#else
signal (SIGINT, up_main_sigint_handler);
#endif