[gtk+] stylecontext: Use right invalidation func



commit 665ad8c6f9dda7284f19353849beed7d7a5b1a68
Author: Benjamin Otte <otte redhat com>
Date:   Tue Aug 19 16:31:06 2014 +0200

    stylecontext: Use right invalidation func
    
    gtk_style_context_invalidate_internal() will respect only the current
    saved state of the style context, which is wrong when updating the scale.
    In that case, the whole style context needs updating.

 gtk/gtkstylecontext.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkstylecontext.c b/gtk/gtkstylecontext.c
index 47e4276..9808557 100644
--- a/gtk/gtkstylecontext.c
+++ b/gtk/gtkstylecontext.c
@@ -1323,7 +1323,7 @@ gtk_style_context_set_scale (GtkStyleContext *context,
 
   context->priv->scale = scale;
 
-  gtk_style_context_queue_invalidate_internal (context, GTK_CSS_CHANGE_SOURCE);
+  _gtk_style_context_queue_invalidate (context, GTK_CSS_CHANGE_SOURCE);
 }
 
 /**


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]