Commit 80dd7b4
gitk: Fix changing colors through Edit->Preferences
With tcl/tk8.5 the lset command seems to behave differently. When
changing the background color through Edit->Preferences, the changes
are applied, but new dialogs, such as View->New view... barf with
Error: unknown color name "{#ffffff}"
Additionally when closing gitk, and starting it up again, a bad value
has been saved to ~/.gitk, preventing gitk from running properly; it
fails with
Error in startup script: unknown color name "{#ffffff}"
...
This commit fixes the problem by changing the color dialogs to pass
the empty string {} as the list index to choosecolor. This causes
the lset and lindex commands used by choosecolor to use and set the
whole variable (bgcolor, fgcolor or selectbgcolor) rather than
treating them as a 1-element list. Tested with tcl/tk8.4 and 8.5.
Dmitry Potapov reported this problem through
http://bugs.debian.org/472615
Signed-off-by: Gerrit Pape <pape@smarden.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>1 parent 2708d9d commit 80dd7b4
1 file changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8045 | 8045 | | |
8046 | 8046 | | |
8047 | 8047 | | |
8048 | | - | |
| 8048 | + | |
8049 | 8049 | | |
8050 | 8050 | | |
8051 | 8051 | | |
8052 | | - | |
| 8052 | + | |
8053 | 8053 | | |
8054 | 8054 | | |
8055 | 8055 | | |
| |||
8069 | 8069 | | |
8070 | 8070 | | |
8071 | 8071 | | |
8072 | | - | |
| 8072 | + | |
8073 | 8073 | | |
8074 | 8074 | | |
8075 | 8075 | | |
| |||
0 commit comments