diff options
Diffstat (limited to 'src/mate-screensaver-command.c')
-rw-r--r-- | src/mate-screensaver-command.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mate-screensaver-command.c b/src/mate-screensaver-command.c index 60c6001..77cfd27 100644 --- a/src/mate-screensaver-command.c +++ b/src/mate-screensaver-command.c @@ -329,8 +329,9 @@ oom: } static gboolean -do_command (DBusConnection *connection) +do_command (gpointer data) { + DBusConnection *connection = data; DBusMessage *reply; if (do_quit) @@ -545,7 +546,7 @@ main (int argc, exit (1); } - g_idle_add ((GSourceFunc)do_command, connection); + g_idle_add (do_command, connection); loop = g_main_loop_new (NULL, FALSE); g_main_loop_run (loop); |