summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrbuj <[email protected]>2021-01-21 14:58:07 +0100
committerLuke from DC <[email protected]>2021-02-01 04:08:07 +0000
commit602c2d8339a931aab09f09f417c41040ffdb4418 (patch)
tree0c310b35cae945e6e3f3527dba2e46475703c52a
parentbb300a8ff452b6f8a853b7da3de9922911c0aa32 (diff)
downloadmate-settings-daemon-602c2d8339a931aab09f09f417c41040ffdb4418.tar.bz2
mate-settings-daemon-602c2d8339a931aab09f09f417c41040ffdb4418.tar.xz
mate-settings-daemon: Remove warning -Wcast-function-type
bump glib 2.58
-rw-r--r--configure.ac2
-rw-r--r--mate-settings-daemon/main.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac
index cf4f72a..fa74312 100644
--- a/configure.ac
+++ b/configure.ac
@@ -53,7 +53,7 @@ dnl - Dependencies
dnl ---------------------------------------------------------------------------
DBUS_GLIB_REQUIRED_VERSION=0.74
-GLIB_REQUIRED_VERSION=2.50.0
+GLIB_REQUIRED_VERSION=2.58.0
GIO_REQUIRED_VERSION=2.50.0
GTK_REQUIRED_VERSION=3.22.0
MATE_DESKTOP_REQUIRED_VERSION=1.25.0
diff --git a/mate-settings-daemon/main.c b/mate-settings-daemon/main.c
index 77de96f..84a06cf 100644
--- a/mate-settings-daemon/main.c
+++ b/mate-settings-daemon/main.c
@@ -73,7 +73,7 @@ static gboolean
timed_exit_cb (void)
{
gtk_main_quit ();
- return FALSE;
+ return G_SOURCE_REMOVE;
}
static DBusGProxy *
@@ -547,7 +547,7 @@ main (int argc, char *argv[])
}
if (do_timed_exit) {
- g_timeout_add_seconds (30, (GSourceFunc) timed_exit_cb, NULL);
+ g_timeout_add_seconds (30, G_SOURCE_FUNC (timed_exit_cb), NULL);
}
gtk_main ();