diff options
author | Matthias Clasen <matthiasc@src.gnome.org> | 2008-12-13 08:18:50 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2008-12-13 08:18:50 +0000 |
commit | c27052be9621ab6390319cdc3bcce559d468c8a9 (patch) | |
tree | 272337a4e085141ae791a5248e7f16ca359eb98a /gtk/gtkcellrendererprogress.c | |
parent | 4cf69fddb45c52c21f5e9262ec3c6c4b2600ab5e (diff) | |
download | gtk+-c27052be9621ab6390319cdc3bcce559d468c8a9.tar.gz |
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
Diffstat (limited to 'gtk/gtkcellrendererprogress.c')
-rw-r--r-- | gtk/gtkcellrendererprogress.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/gtkcellrendererprogress.c b/gtk/gtkcellrendererprogress.c index 3dec5b758d..08a7e9ae82 100644 --- a/gtk/gtkcellrendererprogress.c +++ b/gtk/gtkcellrendererprogress.c @@ -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; |