[gtk+/wip/cssnode3: 34/81] widget: Create widget path classes from proper style



commit dde3a47ad2134dba68daea08997adff62fe27f3a
Author: Benjamin Otte <otte redhat com>
Date:   Sun Feb 15 22:26:13 2015 +0100

    widget: Create widget path classes from proper style
    
    We don't want to add the current classes to the widget path - which
    might potentially be different after a gtk_style_context_save() - but
    the root node's ones. So what better thing to do than actually using the
    root node?

 gtk/gtkwidget.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c
index f221bdc..de52b1e 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -16315,10 +16315,10 @@ gtk_widget_path_append_for_widget (GtkWidgetPath *path,
       /* Also add any persistent classes in
        * the style context the widget path
        */
-      classes = gtk_style_context_list_classes (widget->priv->context);
+      classes = gtk_css_node_list_classes (widget->priv->cssnode);
 
       for (l = classes; l; l = l->next)
-        gtk_widget_path_iter_add_class (path, pos, l->data);
+        gtk_widget_path_iter_add_class (path, pos, g_quark_to_string (GPOINTER_TO_UINT (l->data)));
 
       g_list_free (classes);
     }


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