forked from AuroraMiddleware/gtk
Ensure widgets get a GtkStyle with its backing GtkStyleContext
Since the default style also has a backing context, it wasn't being replaced after initialization.
This commit is contained in:
parent
33fd2104b7
commit
e02b10046d
@ -7741,7 +7741,7 @@ gtk_widget_ensure_style (GtkWidget *widget)
|
||||
g_return_if_fail (GTK_IS_WIDGET (widget));
|
||||
|
||||
if (!widget->priv->style ||
|
||||
!gtk_style_has_context (widget->priv->style))
|
||||
widget->priv->style == gtk_widget_get_default_style ())
|
||||
{
|
||||
GtkStyle *style;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user