[gtk-css-engine] Update after libccss multiple-pseudo-class-per-node API change.



commit 297d200b7b610c6fcc1f18c10231fc76aa0c7c0e
Author: Robert Staudinger <robsta gnome org>
Date:   Fri Jul 3 18:17:53 2009 +0200

    Update after libccss multiple-pseudo-class-per-node API change.

 src/gce-node.c |   13 +++++++------
 1 files changed, 7 insertions(+), 6 deletions(-)
---
diff --git a/src/gce-node.c b/src/gce-node.c
index d55178c..40b5119 100644
--- a/src/gce-node.c
+++ b/src/gce-node.c
@@ -30,7 +30,7 @@ struct GceNode_ {
 	GtkWidget		*widget;
 	struct {
 		char const	*class_name;
-		char const	*pseudo_class;
+		char const	*pseudo_classes[2];
 		char const	*gap;
 		char const	*shadow;
 		char const	*orientation;
@@ -97,7 +97,8 @@ gce_node_cache_fetch_node (GtkWidget	*widget,
 
 	node->widget = widget;
 	node->attribs.class_name = class_name;
-	node->attribs.pseudo_class = pseudo_class;
+	node->attribs.pseudo_classes[0] = pseudo_class;
+	node->attribs.pseudo_classes[1] = NULL;
 	node->attribs.gap = gap;
 	node->attribs.shadow = shadow;
 	node->attribs.orientation = orientation;
@@ -282,12 +283,12 @@ get_class (GceNode const *node)
 	return node->attribs.class_name;
 }
 
-static char const *
-get_pseudo_class (GceNode const *node)
+static char const **
+get_pseudo_classes (GceNode const *node)
 {
 	g_return_val_if_fail (node, NULL);
 
-	return node->attribs.pseudo_class;
+	return node->attribs.pseudo_classes;
 }
 
 static char *
@@ -435,7 +436,7 @@ static ccss_node_class_t _node_class = {
 	.get_id			= (ccss_node_get_id_f) get_id,
 	.get_type		= (ccss_node_get_type_f) get_type,
 	.get_class		= (ccss_node_get_class_f) get_class,
-	.get_pseudo_class	= (ccss_node_get_pseudo_class_f) get_pseudo_class,
+	.get_pseudo_classes	= (ccss_node_get_pseudo_classes_f) get_pseudo_classes,
 	.get_attribute		= (ccss_node_get_attribute_f) get_attribute,
 	.get_viewport		= (ccss_node_get_viewport_f) get_viewport,
 	.release		= (ccss_node_release_f) release



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