[gnome-desktop] thumbnail: Include the filename in the thumbnail path



commit ef0f02e3a248e0892de282b6ac7673b0c8c74798
Author: Sebastian Keller <sebastian-keller gmx de>
Date:   Fri Dec 5 00:20:10 2014 +0100

    thumbnail: Include the filename in the thumbnail path
    
    thumbnail_path did not include the actual filename in its result after
    calculating it. This breaks things in save_thumbnail which assumes
    receiving a file path rather than a directory path.
    
    See original code before clean ups at:
    
https://git.gnome.org/browse/gnome-desktop/tree/libgnome-desktop/gnome-desktop-thumbnail.c?id=f2d25fa7d6cdaba03679f0fc0921fc5f81bd3944#n1060
    
    https://bugzilla.gnome.org/show_bug.cgi?id=684026

 libgnome-desktop/gnome-desktop-thumbnail.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/libgnome-desktop/gnome-desktop-thumbnail.c b/libgnome-desktop/gnome-desktop-thumbnail.c
index 04dc660..eb50f37 100644
--- a/libgnome-desktop/gnome-desktop-thumbnail.c
+++ b/libgnome-desktop/gnome-desktop-thumbnail.c
@@ -1049,6 +1049,7 @@ thumbnail_path (const char                *uri,
   path = g_build_filename (g_get_user_cache_dir (),
                            "thumbnails",
                            size == GNOME_DESKTOP_THUMBNAIL_SIZE_LARGE ? "large" : "normal",
+                           file,
                            NULL);
   g_free (file);
   return path;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]