forked from AuroraMiddleware/gtk
viewport: Don't destroy pixelcache while it's still used
Removing the child unsets the pxielcache's style context...
This commit is contained in:
parent
e1068255b3
commit
e3f8316d08
@ -574,13 +574,11 @@ gtk_viewport_destroy (GtkWidget *widget)
|
|||||||
viewport_disconnect_adjustment (viewport, GTK_ORIENTATION_HORIZONTAL);
|
viewport_disconnect_adjustment (viewport, GTK_ORIENTATION_HORIZONTAL);
|
||||||
viewport_disconnect_adjustment (viewport, GTK_ORIENTATION_VERTICAL);
|
viewport_disconnect_adjustment (viewport, GTK_ORIENTATION_VERTICAL);
|
||||||
|
|
||||||
if (priv->pixel_cache)
|
|
||||||
_gtk_pixel_cache_free (priv->pixel_cache);
|
|
||||||
priv->pixel_cache = NULL;
|
|
||||||
|
|
||||||
g_clear_object (&priv->gadget);
|
g_clear_object (&priv->gadget);
|
||||||
|
|
||||||
GTK_WIDGET_CLASS (gtk_viewport_parent_class)->destroy (widget);
|
GTK_WIDGET_CLASS (gtk_viewport_parent_class)->destroy (widget);
|
||||||
|
|
||||||
|
g_clear_pointer (&priv->pixel_cache, _gtk_pixel_cache_free);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user