gitk: Work around empty back and forward images when buttons are disabled
commitf062e50fe69e01376b6ebf7ade8402b782620ac3
authorStefan Haller <stefan@haller-berlin.de>
Sat, 22 Sep 2012 07:46:48 +0000 (22 09:46 +0200)
committerPaul Mackerras <paulus@samba.org>
Sun, 23 Sep 2012 06:14:58 +0000 (23 16:14 +1000)
tree81303568000beb5245401a8815b05477f7c399e4
parent30441a6f2d5459efa8b64332dfc3a95662a1648a
gitk: Work around empty back and forward images when buttons are disabled

On Mac, the back and forward buttons show an empty rectange instead of
a grayed-out arrow when they are disabled. The reason is a Tk bug on Mac
that causes disabled images not to draw correctly (not to draw at all,
that is); see
<https://groups.google.com/forum/?fromgroups=#!topic/comp.lang.tcl/V-nW1JBq0eU>.

To work around this, we explicitly provide gray images for the disabled
state; I think this looks better than the default stipple effect that you
get on Windows as well, but that may be a matter of taste.

Signed-off-by: Stefan Haller <stefan@haller-berlin.de>
Signed-off-by: Paul Mackerras <paulus@samba.org>
gitk