GNOME Bugzilla – Bug 649593
GtkProgressBar theming fixes
Last modified: 2011-05-06 19:11:07 UTC
There are two issues with the theming of progress bars, addressed by these two patches. The cell renderer patch fixes some confusion between border and padding. The GtkProgressBar fixes the case where one instance of the padding value was fetched with the trough style class, only at one point in the whole widget. Note that these allow for removing quite some hacks in the Adwaita theme \o/
Created attachment 187377 [details] [review] cellrendererprogress: don't force drawing inside the border The progressbar is composed by two different rendered areas: the trough (i.e. the non-filled part of the bar) and the bar itself. The bar should be able to fill the whole height/width of the trough without resorting to nasty hacks in the theme, and we can control the amount of space between the bar and the trough with the padding already.
Created attachment 187378 [details] [review] progressbar: fetch the padding without the trough style class This is consistent with the rest of the widget, which uses only one padding value.
Looks fine to me, if it fixes things...
Attachment 187377 [details] pushed as 73d9ca6 - cellrendererprogress: don't force drawing inside the border Attachment 187378 [details] pushed as 579afaa - progressbar: fetch the padding without the trough style class