summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2010-08-17 03:26:20 +0200
committerBenjamin Otte <otte@redhat.com>2010-09-26 15:02:58 +0200
commite5e228debf7ad480a7e99a7fda11c7d2e590a476 (patch)
tree40c608d2f3454f5c638957a1d542f1470ef72a55 /modules
parentf0fd2e3a6e49984d5ee71295e3e59565ba594b5b (diff)
downloadgtk+-e5e228debf7ad480a7e99a7fda11c7d2e590a476.tar.gz
style: Convert draw_handle vfunc to Cairo version
Diffstat (limited to 'modules')
-rw-r--r--modules/engines/pixbuf/pixbuf-draw.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/modules/engines/pixbuf/pixbuf-draw.c b/modules/engines/pixbuf/pixbuf-draw.c
index 7bb2623df5..f12218761f 100644
--- a/modules/engines/pixbuf/pixbuf-draw.c
+++ b/modules/engines/pixbuf/pixbuf-draw.c
@@ -872,10 +872,9 @@ draw_slider (GtkStyle *style,
static void
draw_handle (GtkStyle *style,
- GdkWindow *window,
+ cairo_t *cr,
GtkStateType state,
GtkShadowType shadow,
- GdkRectangle *area,
GtkWidget *widget,
const gchar *detail,
gint x,
@@ -886,9 +885,6 @@ draw_handle (GtkStyle *style,
{
ThemeMatchData match_data;
- g_return_if_fail (style != NULL);
- g_return_if_fail (window != NULL);
-
match_data.function = TOKEN_D_HANDLE;
match_data.detail = (gchar *)detail;
match_data.flags = (THEME_MATCH_SHADOW |
@@ -898,9 +894,9 @@ draw_handle (GtkStyle *style,
match_data.state = state;
match_data.orientation = orientation;
- 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_handle (style, window, state, shadow, area, widget, detail,
+ parent_class->draw_handle (style, cr, state, shadow, widget, detail,
x, y, width, height, orientation);
}