summaryrefslogtreecommitdiff
path: root/modules/engines
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2010-08-16 21:58:15 +0200
committerBenjamin Otte <otte@redhat.com>2010-09-26 15:02:58 +0200
commitf2dc8a26ed62b9bf8eff440e6c811908bb11cc00 (patch)
tree4fb15263e7b35c7e5894d35ea1441069e7829991 /modules/engines
parentfed19bcf503903f8bf124198be4ad609915e2102 (diff)
downloadgtk+-f2dc8a26ed62b9bf8eff440e6c811908bb11cc00.tar.gz
style: Convert draw_option vfunc to Cairo version
Diffstat (limited to 'modules/engines')
-rw-r--r--modules/engines/pixbuf/pixbuf-draw.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/modules/engines/pixbuf/pixbuf-draw.c b/modules/engines/pixbuf/pixbuf-draw.c
index e6c2558f78..8e6bc84b68 100644
--- a/modules/engines/pixbuf/pixbuf-draw.c
+++ b/modules/engines/pixbuf/pixbuf-draw.c
@@ -714,11 +714,10 @@ draw_check (GtkStyle *style,
}
static void
-draw_option (GtkStyle *style,
- GdkWindow *window,
+draw_option (GtkStyle *style,
+ cairo_t *cr,
GtkStateType state,
GtkShadowType shadow,
- GdkRectangle *area,
GtkWidget *widget,
const gchar *detail,
gint x,
@@ -728,18 +727,15 @@ draw_option (GtkStyle *style,
{
ThemeMatchData match_data;
- g_return_if_fail(style != NULL);
- g_return_if_fail(window != NULL);
-
match_data.function = TOKEN_D_OPTION;
match_data.detail = (gchar *)detail;
match_data.flags = THEME_MATCH_SHADOW | THEME_MATCH_STATE;
match_data.shadow = shadow;
match_data.state = state;
- if (!draw_simple_image_no_cairo (style, window, area, widget, &match_data, TRUE, TRUE,
+ if (!draw_simple_image (style, cr, widget, &match_data, TRUE, TRUE,
x, y, width, height))
- parent_class->draw_option (style, window, state, shadow, area, widget, detail,
+ parent_class->draw_option (style, cr, state, shadow, widget, detail,
x, y, width, height);
}