mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-27 22:20:24 +00:00
Use gtk_render_activity() when rendering progressbars through GtkStyle
This commit is contained in:
parent
ee37847952
commit
0df9c70200
@ -2540,8 +2540,13 @@ gtk_default_draw_box (GtkStyle *style,
|
||||
|
||||
cairo_save (cr);
|
||||
|
||||
gtk_render_background (context, cr, x, y, width, height);
|
||||
gtk_render_frame (context, cr, x, y, width, height);
|
||||
if (gtk_style_context_has_class (context, GTK_STYLE_CLASS_PROGRESSBAR))
|
||||
gtk_render_activity (context, cr, x, y, width, height);
|
||||
else
|
||||
{
|
||||
gtk_render_background (context, cr, x, y, width, height);
|
||||
gtk_render_frame (context, cr, x, y, width, height);
|
||||
}
|
||||
|
||||
cairo_restore (cr);
|
||||
gtk_style_context_restore (context);
|
||||
|
Loading…
Reference in New Issue
Block a user