diff options
author | Wolfgang Ulbrich <[email protected]> | 2015-11-16 13:19:29 +0100 |
---|---|---|
committer | Wolfgang Ulbrich <[email protected]> | 2015-12-02 12:47:08 +0100 |
commit | eccf1e91de9543e3f062802aaae663dbbb5176ae (patch) | |
tree | c575e6b4bc32f785f77934914632ea558e9ef8cd /plugins/housekeeping/msd-disk-space.c | |
parent | 355fdba3e5c95beea4c9a8aa05dfec59a580611b (diff) | |
download | mate-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
Diffstat (limited to 'plugins/housekeeping/msd-disk-space.c')
-rw-r--r-- | plugins/housekeeping/msd-disk-space.c | 4 |
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); |