[Xfce4-commits] <midori:master> Decrement n after clearing individual transfer items

Christian Dywan noreply at xfce.org
Sat Aug 7 15:24:02 CEST 2010


Updating branch refs/heads/master
         to 05065e521d4db5bcef4da221d9027497a14d1ca4 (commit)
       from 13ffa17f2bd4a00d0f0fd5e2f9709195f1b97555 (commit)

commit 05065e521d4db5bcef4da221d9027497a14d1ca4
Author: Peter de Ridder <peter at xfce.org>
Date:   Sat Aug 7 15:20:09 2010 +0200

    Decrement n after clearing individual transfer items

 panels/midori-transfers.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/panels/midori-transfers.c b/panels/midori-transfers.c
index 8292010..d8ccaf1 100644
--- a/panels/midori-transfers.c
+++ b/panels/midori-transfers.c
@@ -112,7 +112,10 @@ midori_transfers_button_clear_clicked_cb (GtkToolItem*    toolitem,
         status = webkit_download_get_status (download);
         if (status == WEBKIT_DOWNLOAD_STATUS_FINISHED
             || status == WEBKIT_DOWNLOAD_STATUS_CANCELLED)
+        {
             gtk_list_store_remove (GTK_LIST_STORE (model), &iter);
+            n--; /* Decrement n since we just removed it */
+        }
         g_object_unref (download);
         #endif
     }



More information about the Xfce4-commits mailing list