style: Convert draw_tab vfunc to Cairo version
This commit is contained in:
@ -741,10 +741,9 @@ draw_option (GtkStyle *style,
|
||||
|
||||
static void
|
||||
draw_tab (GtkStyle *style,
|
||||
GdkWindow *window,
|
||||
cairo_t *cr,
|
||||
GtkStateType state,
|
||||
GtkShadowType shadow,
|
||||
GdkRectangle *area,
|
||||
GtkWidget *widget,
|
||||
const gchar *detail,
|
||||
gint x,
|
||||
@ -754,18 +753,15 @@ draw_tab (GtkStyle *style,
|
||||
{
|
||||
ThemeMatchData match_data;
|
||||
|
||||
g_return_if_fail(style != NULL);
|
||||
g_return_if_fail(window != NULL);
|
||||
|
||||
match_data.function = TOKEN_D_TAB;
|
||||
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_tab (style, window, state, shadow, area, widget, detail,
|
||||
parent_class->draw_tab (style, cr, state, shadow, widget, detail,
|
||||
x, y, width, height);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user