[Xfce4-commits] [xfce/xfdesktop] 11/19: Fix missing thumbnail on xfdesktop when thumbler fails to create it. Need check if exist thumbnail file before emit THUMBNAIL_READY. Seems that thumber not returns the full path. So xfdesktop assumes two directories. Checked to see if the file exists in the first folder but not the second!.
noreply at xfce.org
noreply at xfce.org
Sun Nov 9 15:36:53 CET 2014
This is an automated email from the git hooks/post-receive script.
eric pushed a commit to branch xfce-4.10
in repository xfce/xfdesktop.
commit 84dc9569298a91ec541b4cfd647ce918eaa39c87
Author: Matias De lellis <mati86dl at gmail.com>
Date: Fri Jul 18 01:29:54 2014 -0300
Fix missing thumbnail on xfdesktop when thumbler fails to create it. Need check if exist thumbnail file before emit THUMBNAIL_READY. Seems that thumber not returns the full path. So xfdesktop assumes two directories. Checked to see if the file exists in the first folder but not the second!.
---
common/xfdesktop-thumbnailer.c | 12 +++++++-----
1 file changed, 7 insertions(+), 5 deletions(-)
diff --git a/common/xfdesktop-thumbnailer.c b/common/xfdesktop-thumbnailer.c
index daba7f2..85f14b9 100644
--- a/common/xfdesktop-thumbnailer.c
+++ b/common/xfdesktop-thumbnailer.c
@@ -551,11 +551,13 @@ xfdesktop_thumbnailer_thumbnail_ready_dbus(DBusGProxy *proxy,
(char*)iter->data,
thumbnail_location);
- g_signal_emit(G_OBJECT(thumbnailer),
- thumbnailer_signals[THUMBNAIL_READY],
- 0,
- iter->data,
- thumbnail_location);
+ if(g_file_test(thumbnail_location, G_FILE_TEST_EXISTS)) {
+ g_signal_emit(G_OBJECT(thumbnailer),
+ thumbnailer_signals[THUMBNAIL_READY],
+ 0,
+ iter->data,
+ thumbnail_location);
+ }
thumbnailer->priv->queue = g_slist_remove(thumbnailer->priv->queue,
iter->data);
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list