GtkProgressBar: Add style classes for edges

Add left/right/top/bottom style classes according to which edge(s)
of the progressbar the progress is adjacent to. Only for a fraction
of 1.0 will we set more than one edge.
This commit is contained in:
Matthias Clasen
2014-07-19 00:40:09 -04:00
parent 04c4e1963f
commit a9201b8379
2 changed files with 26 additions and 9 deletions

View File

@ -170,8 +170,7 @@ swatch_draw (GtkWidget *widget,
else
_gtk_theming_background_render (&background, cr);
gtk_render_frame (context, cr,
0, 0, width, height);
gtk_render_frame (context, cr, 0, 0, width, height);
if (gtk_widget_has_visible_focus (widget))
{