diff options
-rw-r--r-- | libmate-desktop/mate-desktop-thumbnail.c | 42 |
1 files changed, 28 insertions, 14 deletions
diff --git a/libmate-desktop/mate-desktop-thumbnail.c b/libmate-desktop/mate-desktop-thumbnail.c index 6e3616c..a2c9b7b 100644 --- a/libmate-desktop/mate-desktop-thumbnail.c +++ b/libmate-desktop/mate-desktop-thumbnail.c @@ -929,11 +929,13 @@ mate_desktop_thumbnail_factory_lookup (MateDesktopThumbnailFactory *factory, file = g_strconcat (g_checksum_get_string (checksum), ".png", NULL); - /* +#if GLIB_CHECK_VERSION (2, 34, 0) path = g_build_filename (g_get_user_cache_dir (), - "thumbnails", */ + "thumbnails", +#else path = g_build_filename (g_get_home_dir (), ".thumbnails", +#endif (priv->size == MATE_DESKTOP_THUMBNAIL_SIZE_NORMAL)?"normal":"large", file, NULL); @@ -993,11 +995,13 @@ mate_desktop_thumbnail_factory_has_valid_failed_thumbnail (MateDesktopThumbnailF file = g_strconcat (g_checksum_get_string (checksum), ".png", NULL); - /* +#if GLIB_CHECK_VERSION (2, 34, 0) path = g_build_filename (g_get_user_cache_dir (), - "thumbnails/fail", */ + "thumbnails/fail", +#else path = g_build_filename (g_get_home_dir (), ".thumbnails/fail", +#endif appname, file, NULL); @@ -1354,11 +1358,13 @@ make_thumbnail_dirs (MateDesktopThumbnailFactory *factory) res = FALSE; - /* +#if GLIB_CHECK_VERSION (2, 34, 0) thumbnail_dir = g_build_filename (g_get_user_cache_dir (), - "thumbnails", */ + "thumbnails", +#else thumbnail_dir = g_build_filename (g_get_home_dir (), ".thumbnails", +#endif NULL); if (!g_file_test (thumbnail_dir, G_FILE_TEST_IS_DIR)) { @@ -1391,11 +1397,13 @@ make_thumbnail_fail_dirs (MateDesktopThumbnailFactory *factory) res = FALSE; - /* +#if GLIB_CHECK_VERSION (2, 34, 0) thumbnail_dir = g_build_filename (g_get_user_cache_dir (), - "thumbnails", */ + "thumbnails", +#else thumbnail_dir = g_build_filename (g_get_home_dir (), ".thumbnails", +#endif NULL); if (!g_file_test (thumbnail_dir, G_FILE_TEST_IS_DIR)) { @@ -1469,11 +1477,13 @@ mate_desktop_thumbnail_factory_save_thumbnail (MateDesktopThumbnailFactory *fact file = g_strconcat (g_checksum_get_string (checksum), ".png", NULL); - /* +#if GLIB_CHECK_VERSION (2, 34, 0) path = g_build_filename (g_get_user_cache_dir (), - "thumbnails", */ + "thumbnails", +#else path = g_build_filename (g_get_home_dir (), ".thumbnails", +#endif (priv->size == MATE_DESKTOP_THUMBNAIL_SIZE_NORMAL)?"normal":"large", file, NULL); @@ -1580,11 +1590,13 @@ mate_desktop_thumbnail_factory_create_failed_thumbnail (MateDesktopThumbnailFact file = g_strconcat (g_checksum_get_string (checksum), ".png", NULL); - /* +#if GLIB_CHECK_VERSION (2, 34, 0) path = g_build_filename (g_get_user_cache_dir (), - "thumbnails/fail", */ + "thumbnails/fail", +#else path = g_build_filename (g_get_home_dir (), ".thumbnails/fail", +#endif appname, file, NULL); @@ -1674,11 +1686,13 @@ mate_desktop_thumbnail_path_for_uri (const char *uri, file = g_strconcat (md5, ".png", NULL); g_free (md5); - /* +#if GLIB_CHECK_VERSION (2, 34, 0) path = g_build_filename (g_get_user_cache_dir (), - "thumbnails", */ + "thumbnails", +#else path = g_build_filename (g_get_home_dir (), ".thumbnails", +#endif (size == MATE_DESKTOP_THUMBNAIL_SIZE_NORMAL)?"normal":"large", file, NULL); |