[gtk+] Avoid tons of warnings from stylecontext initialization without screen



commit bfaf472e703a5378fe8e6b59e116e28dea7ccace
Author: Matthias Clasen <mclasen redhat com>
Date:   Sat Feb 5 11:21:21 2011 -0500

    Avoid tons of warnings from stylecontext initialization without screen
    
    This reverts part of commit 4dc9b29.

 gtk/gtkwidget.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c
index f7e5383..74d83f2 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -14179,7 +14179,7 @@ gtk_widget_get_style_context (GtkWidget *widget)
                         G_CALLBACK (style_context_changed), widget);
 
       gtk_style_context_set_screen (widget->priv->context,
-                                    gtk_widget_get_screen_unchecked (widget));
+                                    gtk_widget_get_screen (widget));
 
       _gtk_widget_update_path (widget);
       gtk_style_context_set_path (widget->priv->context,



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