[Xfce4-commits] [xfce/xfdesktop] 01/01: 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
Fri Jul 18 18:36:34 CEST 2014


This is an automated email from the git hooks/post-receive script.

eric pushed a commit to branch master
in repository xfce/xfdesktop.

commit d6dc96a944f58a93b554e7b06edf9c16617e6400
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 179e5b7..42dbb9c 100644
--- a/common/xfdesktop-thumbnailer.c
+++ b/common/xfdesktop-thumbnailer.c
@@ -565,11 +565,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);
+            }
 
             temp = iter->data;
             thumbnailer->priv->queue = g_slist_remove(thumbnailer->priv->queue,

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list