diff options
author | rbuj <[email protected]> | 2020-03-15 11:40:34 +0100 |
---|---|---|
committer | Robert Antoni Buj Gelonch <[email protected]> | 2020-04-16 14:38:14 +0200 |
commit | 2beb5d4fc7d18e63a633b7a3a5ccfda9c2746d3f (patch) | |
tree | 4758c631a67dd56394bd23c1f15484e9eec907be /src/mate-screensaver-command.c | |
parent | 876e72b42595f60fcc134ed5c9e9d36a9ad2b938 (diff) | |
download | mate-screensaver-2beb5d4fc7d18e63a633b7a3a5ccfda9c2746d3f.tar.bz2 mate-screensaver-2beb5d4fc7d18e63a633b7a3a5ccfda9c2746d3f.tar.xz |
Remove function casting for g_idle_add (function, data)
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); |