summaryrefslogtreecommitdiff
path: root/src/mate-screensaver-command.c
diff options
context:
space:
mode:
authorrbuj <[email protected]>2020-03-15 11:40:34 +0100
committerRobert Antoni Buj Gelonch <[email protected]>2020-04-16 14:38:14 +0200
commit2beb5d4fc7d18e63a633b7a3a5ccfda9c2746d3f (patch)
tree4758c631a67dd56394bd23c1f15484e9eec907be /src/mate-screensaver-command.c
parent876e72b42595f60fcc134ed5c9e9d36a9ad2b938 (diff)
downloadmate-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.c5
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);