[sylpheed:30484] Re: [PATCH] Gtk-CRITICAL **: gtk_progress_set_percentage

Hiroyuki Yamamoto hiro-y at kcn.ne.jp
Mon Dec 4 13:31:05 JST 2006


Hello,

On Thu, 16 Nov 2006 23:33:31 +0100
Sebastian Kärgel <mailing at wodkahexe.de> wrote:

> After some testing and debugging I found the following:
> 
> libsylph/imap.c:imap_get_uncached_messages:
> 
> While the for-loop is running, count and exist get the following
> values:
> 
> enter for-loop in imap_get_uncached_messages: count:1 exists:3
> enter for-loop in imap_get_uncached_messages: count:2 exists:3
> enter for-loop in imap_get_uncached_messages: count:3 exists:3
> enter for-loop in imap_get_uncached_messages: count:4 exists:3
> 
> If ui_update() is called at the point where count > exists the
> Gtk-CRITICAL warning is displayed, because it cannot display more than
> 100%.
> 
> I just fixed it with the attached patch. Don't know if it's 100%
> correct, but it seems to do the trick.

Though a little late, I've fixed it in the svn trunk (your fix was 100%
correct :)).

-- 
Hiroyuki Yamamoto <hiro-y at kcn.ne.jp>


More information about the Sylpheed mailing list