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



commit 5ed8ef7c3f39449b7ae5da515e27126500a69649
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 1f9d671..94d824b 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -16328,10 +16328,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]