iconhelper: clear the surface on invalidation

This was missed during the pixbuf->surface conversion, so when the state
changed we were not recreating a new surface for it.
This commit is contained in:
Cosimo Cecchi 2013-08-03 18:03:52 +02:00
parent bd9ad3c9c2
commit ab88110b51

View File

@ -100,6 +100,11 @@ void
_gtk_icon_helper_invalidate (GtkIconHelper *self) _gtk_icon_helper_invalidate (GtkIconHelper *self)
{ {
g_clear_object (&self->priv->rendered_pixbuf); g_clear_object (&self->priv->rendered_pixbuf);
if (self->priv->rendered_surface != NULL)
{
cairo_surface_destroy (self->priv->rendered_surface);
self->priv->rendered_surface = NULL;
}
} }
void void