summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-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);