summaryrefslogtreecommitdiff
path: root/ccss-gtk
diff options
context:
space:
mode:
authorRobert Staudinger <robsta@gnome.org>2009-04-03 16:33:13 +0200
committerRobert Staudinger <robsta@gnome.org>2009-04-03 16:33:13 +0200
commit6022477e9837028967bebbeb69d8a17d9ecc3b6b (patch)
treea3025fa7fade4eb14109aaa9a18cc1178dbdd767 /ccss-gtk
parent174ae165bfb2d9e4bfbf51e82c9ac039afc3169f (diff)
Move property interpretation code back to ccss.
The 'background', 'border', 'border-image' and 'color' properties can now be queried in interpreted format without depending on cairo. Also implement a cache for loaded images (cairo surfaces). Cache key is the image file's uri.
Diffstat (limited to 'ccss-gtk')
-rw-r--r--ccss-gtk/ccss-gtk-property.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ccss-gtk/ccss-gtk-property.c b/ccss-gtk/ccss-gtk-property.c
index d4989df..ed428f7 100644
--- a/ccss-gtk/ccss-gtk-property.c
+++ b/ccss-gtk/ccss-gtk-property.c
@@ -166,13 +166,13 @@ parse_gdk_color (ccss_grammar_t const *grammar,
void *user_data,
ccss_gtk_property_t *property)
{
- ccss_cairo_color_t color;
- bool ret;
+ ccss_color_t color;
+ bool ret;
g_return_val_if_fail (values && property, false);
memset (&color, 0, sizeof (color));
- ret = ccss_cairo_color_parse (&color, grammar, user_data, &values);
+ ret = ccss_color_parse (&color, &values);
if (ret) {
property->content.gdkcolor_val.red = color.red * 65535;
property->content.gdkcolor_val.green = color.green * 65535;