iconhelper: reset original pixbuf scale on clear

Avoids a previously set value for a different image to accidentally
stick around.

https://bugzilla.gnome.org/show_bug.cgi?id=733416
This commit is contained in:
Cosimo Cecchi 2014-07-22 21:27:59 -07:00
parent 7e425f3019
commit 09a36b1e9f

View File

@ -83,6 +83,7 @@ _gtk_icon_helper_clear (GtkIconHelper *self)
self->priv->last_rendered_state = GTK_STATE_FLAG_NORMAL;
self->priv->last_surface_state = GTK_STATE_FLAG_NORMAL;
self->priv->last_surface_scale = 0;
self->priv->orig_pixbuf_scale = 1;
}
void