forked from AuroraMiddleware/gtk
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:
parent
bd9ad3c9c2
commit
ab88110b51
@ -100,6 +100,11 @@ void
|
||||
_gtk_icon_helper_invalidate (GtkIconHelper *self)
|
||||
{
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user