diff options
author | Benjamin Otte <otte@redhat.com> | 2010-08-16 15:26:19 +0200 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2010-09-26 15:02:58 +0200 |
commit | ff6e75adbc2e5b215f01f0b1448c3382dbdfbc32 (patch) | |
tree | f155fc34040b9d38d7cb26b6dbabb0496560dab8 /modules/engines/pixbuf | |
parent | e5e228debf7ad480a7e99a7fda11c7d2e590a476 (diff) | |
download | gtk+-ff6e75adbc2e5b215f01f0b1448c3382dbdfbc32.tar.gz |
style: Convert draw_expander vfunc to Cairo version
Diffstat (limited to 'modules/engines/pixbuf')
-rw-r--r-- | modules/engines/pixbuf/pixbuf-draw.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/modules/engines/pixbuf/pixbuf-draw.c b/modules/engines/pixbuf/pixbuf-draw.c index f12218761f..12ed496e7c 100644 --- a/modules/engines/pixbuf/pixbuf-draw.c +++ b/modules/engines/pixbuf/pixbuf-draw.c @@ -902,9 +902,8 @@ draw_handle (GtkStyle *style, static void draw_expander (GtkStyle *style, - GdkWindow *window, + cairo_t *cr, GtkStateType state, - GdkRectangle *area, GtkWidget *widget, const gchar *detail, gint x, @@ -917,9 +916,6 @@ draw_expander (GtkStyle *style, gint expander_size; gint radius; - g_return_if_fail (style != NULL); - g_return_if_fail (window != NULL); - if (widget && gtk_widget_class_find_style_property (GTK_WIDGET_GET_CLASS (widget), "expander-size")) @@ -940,9 +936,9 @@ draw_expander (GtkStyle *style, match_data.state = state; match_data.expander_style = expander_style; - 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 - radius, y - radius, expander_size, expander_size)) - parent_class->draw_expander (style, window, state, area, widget, detail, + parent_class->draw_expander (style, cr, state, widget, detail, x, y, expander_style); } |