summaryrefslogtreecommitdiff
path: root/src/gs-window-x11.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-window-x11.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-window-x11.c')
-rw-r--r--src/gs-window-x11.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/gs-window-x11.c b/src/gs-window-x11.c
index c1c9fc8..b8df256 100644
--- a/src/gs-window-x11.c
+++ b/src/gs-window-x11.c
@@ -43,7 +43,7 @@
static void gs_window_finalize (GObject *object);
-static gboolean popup_dialog_idle (GSWindow *window);
+static gboolean popup_dialog_idle (gpointer data);
static void gs_window_dialog_finish (GSWindow *window);
static void remove_command_watches (GSWindow *window);
@@ -636,7 +636,7 @@ remove_popup_dialog_idle (GSWindow *window)
static void
add_popup_dialog_idle (GSWindow *window)
{
- window->priv->popup_dialog_idle_id = g_idle_add ((GSourceFunc)popup_dialog_idle, window);
+ window->priv->popup_dialog_idle_id = g_idle_add (popup_dialog_idle, window);
}
static gboolean
@@ -1753,12 +1753,12 @@ popup_dialog (GSWindow *window)
}
static gboolean
-popup_dialog_idle (GSWindow *window)
+popup_dialog_idle (gpointer data)
{
- popup_dialog (window);
+ GSWindow *window = data;
+ popup_dialog (window);
window->priv->popup_dialog_idle_id = 0;
-
return FALSE;
}