summaryrefslogtreecommitdiff
path: root/src/gs-manager.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/gs-manager.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/gs-manager.c')
-rw-r--r--src/gs-manager.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gs-manager.c b/src/gs-manager.c
index 139a305..f1490d9 100644
--- a/src/gs-manager.c
+++ b/src/gs-manager.c
@@ -1076,8 +1076,10 @@ remove_unfade_idle (GSManager *manager)
static gboolean
-window_deactivated_idle (GSManager *manager)
+window_deactivated_idle (gpointer data)
{
+ GSManager *manager = data;
+
g_return_val_if_fail (manager != NULL, FALSE);
g_return_val_if_fail (GS_IS_MANAGER (manager), FALSE);
@@ -1095,7 +1097,7 @@ window_deactivated_cb (GSWindow *window,
g_return_if_fail (manager != NULL);
g_return_if_fail (GS_IS_MANAGER (manager));
- g_idle_add ((GSourceFunc)window_deactivated_idle, manager);
+ g_idle_add (window_deactivated_idle, manager);
}
static GSWindow *