[Bug 422511] Re: problem with new scrollbar in Human theme - GtkRange::trough-border set to 2

Nikola Kovacs Nx.devnull at gmail.com
Wed Dec 16 16:07:35 UTC 2009


The way gtk is handling trough-border is technically correct, but it is incorrect from a usability viewpoint. One way to fix it is to change gtk's handling of trough-border. I did that, but Firefox needs to be fixed separately because it does its own UI drawing and handling.
The other way is to fake the effect, and set the gtk trough-border to 0. Some themes do this by using the pixbuf engine for the scrollbars (e.g. Dust). I patched murrine to simply draw a thinner scrollbar handle (configurable using a murrine engine parameter) to get the same effect. All the while gtk thinks the trough-border is set to 0, so it avoids all the problems (and it doesn't affect sliders). This fix is a bit of a hack, but I've been using it and didn't have any problems.
This is the murrine patch: http://launchpadlibrarian.net/34046350/murrine_trough_border_proper.patch.
I've also attached the changes to gtkrc that are needed to get the same effect with the murrine patch.
IMHO the murrine patch is better than reworking the way gtk handles trough border.

** Attachment added: "gtkrc.patch"
   http://launchpadlibrarian.net/36873451/gtkrc.patch

-- 
problem with new scrollbar in Human theme - GtkRange::trough-border set to 2
https://bugs.launchpad.net/bugs/422511
You received this bug notification because you are a member of Mozilla
Bugs, which is subscribed to Mozilla Firefox.




More information about the Ubuntu-mozillateam-bugs mailing list