diff options
author | infirit <[email protected]> | 2014-12-16 12:29:37 +0100 |
---|---|---|
committer | infirit <[email protected]> | 2014-12-16 12:29:37 +0100 |
commit | 602945c084d45bd3858e564e03a70a2a361a5756 (patch) | |
tree | 844de6b752357c3da813ae44d6641dd8001751bf /plugins/housekeeping/msd-housekeeping-manager.c | |
parent | 83fe1f587f5c6328b10a899a880275d79bf88921 (diff) | |
download | mate-settings-daemon-602945c084d45bd3858e564e03a70a2a361a5756.tar.bz2 mate-settings-daemon-602945c084d45bd3858e564e03a70a2a361a5756.tar.xz |
Add back Glib 2.32 support
Diffstat (limited to 'plugins/housekeeping/msd-housekeeping-manager.c')
-rw-r--r-- | plugins/housekeeping/msd-housekeeping-manager.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/plugins/housekeeping/msd-housekeeping-manager.c b/plugins/housekeeping/msd-housekeeping-manager.c index 9418e92..b822a5f 100644 --- a/plugins/housekeeping/msd-housekeeping-manager.c +++ b/plugins/housekeeping/msd-housekeeping-manager.c @@ -203,22 +203,38 @@ purge_thumbnail_cache (MsdHousekeepingManager *manager) g_debug ("housekeeping: checking thumbnail cache size and freshness"); +#if GLIB_CHECK_VERSION (2, 34, 0) path = g_build_filename (g_get_user_cache_dir (), "thumbnails", +#else + path = g_build_filename (g_get_home_dir (), + ".thumbnails", +#endif "normal", NULL); files = read_dir_for_purge (path, NULL); g_free (path); +#if GLIB_CHECK_VERSION (2, 34, 0) path = g_build_filename (g_get_user_cache_dir (), "thumbnails", +#else + path = g_build_filename (g_get_home_dir (), + ".thumbnails", +#endif "large", NULL); files = read_dir_for_purge (path, files); g_free (path); +#if GLIB_CHECK_VERSION (2, 34, 0) path = g_build_filename (g_get_user_cache_dir (), "thumbnails", +#else + path = g_build_filename (g_get_home_dir (), + ".thumbnails", +#endif + "fail", "mate-thumbnail-factory", NULL); |