diff options
author | Robert Staudinger <robsta@gnome.org> | 2009-08-06 13:25:48 +0200 |
---|---|---|
committer | Robert Staudinger <robsta@gnome.org> | 2009-08-06 13:25:48 +0200 |
commit | 982cc01c7a47641f25a17460f72ebbd308e70048 (patch) | |
tree | 317cdb713ace506bec065517120eef0e7e5b1cdf /ccss-cairo/ccss-cairo-style.c | |
parent | c318a1682e16dac99715b33cf7442d5e73bc1179 (diff) |
[cairo-appearance] Appearance hooks return bool to signal success.
If they return FALSE the built-in drawing routines are used.
Also update example-8.
Diffstat (limited to 'ccss-cairo/ccss-cairo-style.c')
-rw-r--r-- | ccss-cairo/ccss-cairo-style.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/ccss-cairo/ccss-cairo-style.c b/ccss-cairo/ccss-cairo-style.c index e27649a..e1a2472 100644 --- a/ccss-cairo/ccss-cairo-style.c +++ b/ccss-cairo/ccss-cairo-style.c @@ -352,8 +352,10 @@ ccss_cairo_style_draw_rectangle (ccss_style_t const *self, appearance->base.state == CCSS_PROPERTY_STATE_SET && appearance->draw_function) { - ccss_cairo_appearance_draw (appearance, self, cr, x, y, width, height); - return; + bool ret = appearance->draw_function (self, cr, + x, y, width, height); + if (ret) + return; } gather_outline (self, &bottom, &left, &right, &top, |