Skip to content

Commit daa364c

Browse files
qykth-gitj6t
authored andcommitted
gitk: Legacy widgets doesn't have combobox
Use "proc makedroplist" function to support combobox on legacy widgets mode. "proc makedroplist" uses "ttk::combobox" for themed mode, and uses "tk_optionMenu" for legacy mode to get rid of the problem. Signed-off-by: YOKOTA Hiroshi <[email protected]> Signed-off-by: Johannes Sixt <[email protected]>
1 parent 3fdbf18 commit daa364c

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

gitk

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11736,13 +11736,11 @@ proc prefspage_general {notebook} {
1173611736
grid x $page.tabstopl $page.tabstop -sticky w
1173711737
1173811738
${NS}::label $page.wrapcommentl -text [mc "Wrap comment text"]
11739-
${NS}::combobox $page.wrapcomment -values {none char word} -state readonly \
11740-
-textvariable wrapcomment
11739+
makedroplist $page.wrapcomment wrapcomment none char word
1174111740
grid x $page.wrapcommentl $page.wrapcomment -sticky w
1174211741
1174311742
${NS}::label $page.wrapdefaultl -text [mc "Wrap other text"]
11744-
${NS}::combobox $page.wrapdefault -values {none char word} -state readonly \
11745-
-textvariable wrapdefault
11743+
makedroplist $page.wrapdefault wrapdefault none char word
1174611744
grid x $page.wrapdefaultl $page.wrapdefault -sticky w
1174711745
1174811746
${NS}::checkbutton $page.ntag -text [mc "Display nearby tags/heads"] \

0 commit comments

Comments
 (0)