[gtk+] Set the proper state on the css node



commit 3ca9a218ec049c877820d676ba25950f5e38d2fe
Author: Matthias Clasen <mclasen redhat com>
Date:   Wed May 4 13:38:47 2016 -0400

    Set the proper state on the css node
    
    This will almost certainly overwritten before the widget gets
    to the screen, but while we are doing this, we might as well
    use the same state that we initialize the widgets state to.

 gtk/gtkwidget.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c
index 3ebec01..6fde52e 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -4417,7 +4417,7 @@ gtk_widget_init (GTypeInstance *instance, gpointer g_class)
   _gtk_size_request_cache_init (&priv->requests);
 
   priv->cssnode = gtk_css_widget_node_new (widget);
-  gtk_css_node_set_state (priv->cssnode, GTK_STATE_FLAG_DIR_LTR);
+  gtk_css_node_set_state (priv->cssnode, priv->state_flags);
   /* need to set correct type here, and only class has the correct type here */
   gtk_css_node_set_widget_type (priv->cssnode, G_TYPE_FROM_CLASS (g_class));
   gtk_css_node_set_name (priv->cssnode, GTK_WIDGET_CLASS (g_class)->priv->css_name);


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