From 73495153dd7ded5657ce69ba1d6bcaa5e12dd3ab Mon Sep 17 00:00:00 2001 From: Diego Escalante Urrelo Date: Wed, 15 Aug 2007 08:14:59 +0000 Subject: Fix download-icon toolip updates, patch by Cosimo Cecchi. Fixes bug 2007-08-15 Diego Escalante Urrelo * embed/downloader-view.c: Fix download-icon toolip updates, patch by Cosimo Cecchi. Fixes bug #343238. svn path=/trunk/; revision=7276 --- ChangeLog | 7 +++++++ embed/downloader-view.c | 12 +++++++++--- 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 90af3beb9..4dc919964 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2007-08-15 Diego Escalante Urrelo + + * embed/downloader-view.c: + + Fix download-icon toolip updates, patch by Cosimo Cecchi. + Fixes bug #343238. + 2007-08-15 Diego Escalante Urrelo * embed/mozilla/GtkNSSDialogs.cpp: diff --git a/embed/downloader-view.c b/embed/downloader-view.c index 0374d89a0..ce4294f62 100644 --- a/embed/downloader-view.c +++ b/embed/downloader-view.c @@ -467,8 +467,6 @@ update_download_row (DownloaderView *dv, EphyDownload *download) g_free (cur_progress); g_free (file); g_free (remaining); - - update_buttons (dv); } static void @@ -492,7 +490,13 @@ static void download_changed_cb (EphyDownload *download, DownloaderView *dv) { update_download_row (dv, download); - update_status_icon (dv); +} + +static gboolean +update_buttons_timeout_cb (DownloaderView *dv) +{ + update_buttons (dv); + return FALSE; } void @@ -563,6 +567,8 @@ downloader_view_add_download (DownloaderView *dv, { g_object_unref (pixbuf); } + + g_timeout_add (100, (GSourceFunc) update_buttons_timeout_cb, dv); } -- cgit v1.2.3