[gtk+] Ensure widgets get a GtkStyle with its backing GtkStyleContext



commit e02b10046d543db9094f75994f0f77d93d09706b
Author: Carlos Garnacho <carlosg gnome org>
Date:   Tue Dec 21 01:27:32 2010 +0100

    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.

 gtk/gtkwidget.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c
index 97a1f44..66838bc 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -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;
 



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