diff options
author | Sebastian Keller <sebastian-keller@gmx.de> | 2014-12-05 00:20:10 +0100 |
---|---|---|
committer | Bastien Nocera <hadess@hadess.net> | 2014-12-05 14:41:34 +0100 |
commit | ef0f02e3a248e0892de282b6ac7673b0c8c74798 (patch) | |
tree | d444a41f1658225da417a6533aa178a1dc6117c9 | |
parent | ef4734f80d7862426714d3720700cf4526499997 (diff) | |
download | gnome-desktop-ef0f02e3a248e0892de282b6ac7673b0c8c74798.tar.gz |
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
-rw-r--r-- | 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 04dc6605..eb50f371 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; |