diff options
author | Benjamin Otte <otte@redhat.com> | 2010-08-16 15:40:03 +0200 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2010-09-26 15:02:58 +0200 |
commit | e59cbd5605386df241d22b7802b72a0e3967414d (patch) | |
tree | d32fb3d9a1ea0b9d49f9118722a6f436b364a9d8 /modules | |
parent | abaecf430854fec3f0fc6d84c9adf92f16f0ba57 (diff) | |
download | gtk+-e59cbd5605386df241d22b7802b72a0e3967414d.tar.gz |
style: Convert draw_vline vfunc to a Cairo version
Diffstat (limited to 'modules')
-rw-r--r-- | modules/engines/pixbuf/pixbuf-draw.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/modules/engines/pixbuf/pixbuf-draw.c b/modules/engines/pixbuf/pixbuf-draw.c index 74007b6b68..f1f3c5b9b4 100644 --- a/modules/engines/pixbuf/pixbuf-draw.c +++ b/modules/engines/pixbuf/pixbuf-draw.c @@ -418,9 +418,8 @@ draw_hline (GtkStyle *style, static void draw_vline (GtkStyle *style, - GdkWindow *window, + cairo_t *cr, GtkStateType state, - GdkRectangle *area, GtkWidget *widget, const gchar *detail, gint y1, @@ -430,9 +429,6 @@ draw_vline (GtkStyle *style, ThemeImage *image; ThemeMatchData match_data; - g_return_if_fail (style != NULL); - g_return_if_fail (window != NULL); - match_data.function = TOKEN_D_VLINE; match_data.detail = (gchar *)detail; match_data.flags = THEME_MATCH_ORIENTATION | THEME_MATCH_STATE; @@ -443,12 +439,12 @@ draw_vline (GtkStyle *style, if (image) { if (image->background) - theme_pixbuf_render_no_cairo (image->background, - window, area, COMPONENT_ALL, FALSE, + theme_pixbuf_render (image->background, + cr, COMPONENT_ALL, FALSE, x, y1, 2, (y2 - y1) + 1); } else - parent_class->draw_vline (style, window, state, area, widget, detail, + parent_class->draw_vline (style, cr, state, widget, detail, y1, y2, x); } |