summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWolfgang Ulbrich <[email protected]>2015-11-16 13:19:29 +0100
committerWolfgang Ulbrich <[email protected]>2015-12-02 12:47:08 +0100
commiteccf1e91de9543e3f062802aaae663dbbb5176ae (patch)
treec575e6b4bc32f785f77934914632ea558e9ef8cd
parent355fdba3e5c95beea4c9a8aa05dfec59a580611b (diff)
downloadmate-settings-daemon-eccf1e91de9543e3f062802aaae663dbbb5176ae.tar.bz2
mate-settings-daemon-eccf1e91de9543e3f062802aaae663dbbb5176ae.tar.xz
Glib: don't use deprecated g_unix_mount_monitor_new
taken from: https://git.gnome.org/browse/gnome-settings-daemon/commit/?id=a7b8282
-rw-r--r--plugins/housekeeping/msd-disk-space.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/housekeeping/msd-disk-space.c b/plugins/housekeeping/msd-disk-space.c
index 4df90f2..3aa1ab7 100644
--- a/plugins/housekeeping/msd-disk-space.c
+++ b/plugins/housekeeping/msd-disk-space.c
@@ -659,8 +659,12 @@ msd_ldsm_setup (gboolean check_now)
msd_ldsm_get_config ();
g_signal_connect (settings, "changed", G_CALLBACK (msd_ldsm_update_config), NULL);
+#if GLIB_CHECK_VERSION (2, 44, 0)
+ ldsm_monitor = g_unix_mount_monitor_get ();
+#else
ldsm_monitor = g_unix_mount_monitor_new ();
g_unix_mount_monitor_set_rate_limit (ldsm_monitor, 1000);
+#endif
g_signal_connect (ldsm_monitor, "mounts-changed",
G_CALLBACK (ldsm_mounts_changed), NULL);