style: Convert draw_focus vfunc to Cairo version

This commit is contained in:
Benjamin Otte
2010-08-16 22:24:46 +02:00
parent 4d4871203e
commit 24304a2e93
3 changed files with 76 additions and 37 deletions

View File

@ -818,9 +818,8 @@ draw_extension (GtkStyle *style,
static void
draw_focus (GtkStyle *style,
GdkWindow *window,
cairo_t *cr,
GtkStateType state_type,
GdkRectangle *area,
GtkWidget *widget,
const gchar *detail,
gint x,
@ -830,16 +829,13 @@ draw_focus (GtkStyle *style,
{
ThemeMatchData match_data;
g_return_if_fail (style != NULL);
g_return_if_fail (window != NULL);
match_data.function = TOKEN_D_FOCUS;
match_data.detail = (gchar *)detail;
match_data.flags = 0;
if (!draw_simple_image_no_cairo (style, window, area, widget, &match_data, TRUE, FALSE,
if (!draw_simple_image (style, cr, widget, &match_data, TRUE, FALSE,
x, y, width, height))
parent_class->draw_focus (style, window, state_type, area, widget, detail,
parent_class->draw_focus (style, cr, state_type, widget, detail,
x, y, width, height);
}