summaryrefslogtreecommitdiff
path: root/gtk/gtkcssvalue.c
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2012-04-04 16:15:41 +0200
committerBenjamin Otte <otte@redhat.com>2012-04-17 08:59:18 +0200
commit56f79fecce885e05b7fe1677a70b98c64ea4a85c (patch)
tree7b2e19ed13500e3c7075873a0326b3b29e510bf8 /gtk/gtkcssvalue.c
parentcfc64627304916e1a1848230dbb426e7dc22251f (diff)
downloadgtk+-56f79fecce885e05b7fe1677a70b98c64ea4a85c.tar.gz
cssvalue: Add a border value
.. and parse border-image-slice with it.
Diffstat (limited to 'gtk/gtkcssvalue.c')
-rw-r--r--gtk/gtkcssvalue.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/gtk/gtkcssvalue.c b/gtk/gtkcssvalue.c
index 80ccd54585..477d7b1f0d 100644
--- a/gtk/gtkcssvalue.c
+++ b/gtk/gtkcssvalue.c
@@ -349,6 +349,19 @@ _gtk_css_value_equal (const GtkCssValue *value1,
return value1->class->equal (value1, value2);
}
+gboolean
+_gtk_css_value_equal0 (const GtkCssValue *value1,
+ const GtkCssValue *value2)
+{
+ if (value1 == NULL && value2 == NULL)
+ return TRUE;
+
+ if (value1 == NULL || value2 == NULL)
+ return FALSE;
+
+ return _gtk_css_value_equal (value1, value2);
+}
+
GtkCssValue *
_gtk_css_value_transition (GtkCssValue *start,
GtkCssValue *end,