forked from AuroraMiddleware/gtk
stylecontext: always add the ARROW style class when rendering an arrow
When gtk_render_arrow() is called, always add an ARROW style class to the GtkStyleContext before rendering, so themes can specify a different color for it. https://bugzilla.gnome.org/show_bug.cgi?id=665420
This commit is contained in:
parent
c538fb8f64
commit
d80ff7b5f1
@ -3716,12 +3716,16 @@ gtk_render_arrow (GtkStyleContext *context,
|
||||
|
||||
cairo_save (cr);
|
||||
|
||||
gtk_style_context_save (context);
|
||||
gtk_style_context_add_class (context, GTK_STYLE_CLASS_ARROW);
|
||||
|
||||
store_animation_region (context, x, y, size, size);
|
||||
|
||||
_gtk_theming_engine_set_context (priv->theming_engine, context);
|
||||
engine_class->render_arrow (priv->theming_engine, cr,
|
||||
angle, x, y, size);
|
||||
|
||||
gtk_style_context_restore (context);
|
||||
cairo_restore (cr);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user