Don't try to keep state in a cell renderer between two paint calls. It

* gtk/gtkcellrendererprogress.c (gtk_cell_renderer_progress_set_pulse):
        Don't try to keep state in a cell renderer between two paint
        calls. It doesn't work. Patch by Kristian Mueller


svn path=/trunk/; revision=21890
This commit is contained in:
Matthias Clasen
2008-12-13 08:18:50 +00:00
parent 4cf69fddb4
commit c27052be96
2 changed files with 11 additions and 2 deletions

View File

@ -396,10 +396,10 @@ gtk_cell_renderer_progress_set_pulse (GtkCellRendererProgress *cellprogress,
if (pulse != priv->pulse)
{
if (priv->pulse <= 0)
if (pulse <= 0)
priv->offset = 0;
else
priv->offset++;
priv->offset = pulse;
}
priv->pulse = pulse;