From 8cc5595d9091b484b9a4abe314c0f3ec055e0581 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Sat, 20 Jan 2007 05:26:15 +0000 Subject: Make it possible to support an embedded GLib --- input/main.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'input/main.c') diff --git a/input/main.c b/input/main.c index df1eee9e..e74c4482 100644 --- a/input/main.c +++ b/input/main.c @@ -35,9 +35,10 @@ #include +#include + #include "dbus.h" #include "logging.h" -#include "glib-ectomy.h" #include "input-service.h" @@ -45,7 +46,7 @@ static GMainLoop *main_loop; static void sig_term(int sig) { - g_main_quit(main_loop); + g_main_loop_quit(main_loop); } int main(int argc, char *argv[]) @@ -67,14 +68,14 @@ int main(int argc, char *argv[]) enable_debug(); /* Create event loop */ - main_loop = g_main_new(FALSE); + main_loop = g_main_loop_new(NULL, FALSE); if (input_dbus_init() < 0) { error("Unable to get on D-Bus"); exit(1); } - g_main_run(main_loop); + g_main_loop_run(main_loop); input_dbus_exit(); -- cgit