Check screen really changed before notifying it and invalidating the context
This commit is contained in:
committed by
Carlos Garnacho
parent
7abf76fbc1
commit
7a5a622998
@ -2556,8 +2556,12 @@ gtk_style_context_set_screen (GtkStyleContext *context,
|
|||||||
GtkStyleContextPrivate *priv;
|
GtkStyleContextPrivate *priv;
|
||||||
|
|
||||||
g_return_if_fail (GTK_IS_STYLE_CONTEXT (context));
|
g_return_if_fail (GTK_IS_STYLE_CONTEXT (context));
|
||||||
|
g_return_if_fail (GDK_IS_SCREEN (screen));
|
||||||
|
|
||||||
priv = context->priv;
|
priv = context->priv;
|
||||||
|
if (priv->screen == screen)
|
||||||
|
return;
|
||||||
|
|
||||||
priv->screen = screen;
|
priv->screen = screen;
|
||||||
|
|
||||||
g_object_notify (G_OBJECT (context), "screen");
|
g_object_notify (G_OBJECT (context), "screen");
|
||||||
|
|||||||
Reference in New Issue
Block a user