[Xfce4-commits] <ristretto:master> Remove debug statement Update TODO Remove thumbnails from thumbnail-queue when ready

Stephan Arts noreply at xfce.org
Fri Jan 8 09:06:01 CET 2010


Updating branch refs/heads/master
         to 6b4af04bc51d590c35ddc710119d82811494be86 (commit)
       from d28d43cb7ad6d88f031befcfc3d112883b1c6833 (commit)

commit 6b4af04bc51d590c35ddc710119d82811494be86
Author: Stephan Arts <stephan at xfce.org>
Date:   Fri Jan 8 09:04:16 2010 +0100

    Remove debug statement
    Update TODO
    Remove thumbnails from thumbnail-queue when ready

 TODO              |    3 ++-
 src/thumbnailer.c |    5 +++--
 2 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/TODO b/TODO
index 22e974c..021b218 100644
--- a/TODO
+++ b/TODO
@@ -1,5 +1,6 @@
 - Implement preferences dialog
-- Generate and save thumbnails (contact thumbler)
+- Generate and save thumbnails (DONE)
+    - Listen to Ready signal
 
 - Support setting wallpapers
     - nautilus
diff --git a/src/thumbnailer.c b/src/thumbnailer.c
index 11a1daf..aada7f3 100644
--- a/src/thumbnailer.c
+++ b/src/thumbnailer.c
@@ -293,13 +293,14 @@ cb_rstto_thumbnailer_request_finished (DBusGProxy *proxy, gint handle, gpointer
 {
     RsttoThumbnailer *thumbnailer = RSTTO_THUMBNAILER (data);
     GSList *iter = thumbnailer->priv->queue;
+    GSList *prev;
     while (iter)
     {
         rstto_thumbnail_update (iter->data);
+        prev = iter;
         iter = g_slist_next(iter);
+        thumbnailer->priv->queue = g_slist_remove (thumbnailer->priv->queue, prev);
     } 
-
-    g_debug("Finished");   
 }
 
 static void



More information about the Xfce4-commits mailing list