aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYOKOTA Hiroshi <yokota.hgml@gmail.com>2025-05-05 02:57:07 +0900
committerJohannes Sixt <j6t@kdbg.org>2025-05-10 19:55:17 +0200
commitdaa364cfb7a1cda324ec5c5cdaf92bcad429cfbd (patch)
tree5de7c65e5e3fc802385b8e059d3fc296c13ed239
parentMerge branch 'at/translation-tamil' (diff)
downloadgit-daa364cfb7a1cda324ec5c5cdaf92bcad429cfbd.tar.gz
git-daa364cfb7a1cda324ec5c5cdaf92bcad429cfbd.zip
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 <yokota.hgml@gmail.com> Signed-off-by: Johannes Sixt <j6t@kdbg.org>
Diffstat (limited to '')
-rwxr-xr-xgitk6
1 files changed, 2 insertions, 4 deletions
diff --git a/gitk b/gitk
index 11ad639d06..966833a19e 100755
--- a/gitk
+++ b/gitk
@@ -11736,13 +11736,11 @@ proc prefspage_general {notebook} {
grid x $page.tabstopl $page.tabstop -sticky w
${NS}::label $page.wrapcommentl -text [mc "Wrap comment text"]
- ${NS}::combobox $page.wrapcomment -values {none char word} -state readonly \
- -textvariable wrapcomment
+ makedroplist $page.wrapcomment wrapcomment none char word
grid x $page.wrapcommentl $page.wrapcomment -sticky w
${NS}::label $page.wrapdefaultl -text [mc "Wrap other text"]
- ${NS}::combobox $page.wrapdefault -values {none char word} -state readonly \
- -textvariable wrapdefault
+ makedroplist $page.wrapdefault wrapdefault none char word
grid x $page.wrapdefaultl $page.wrapdefault -sticky w
${NS}::checkbutton $page.ntag -text [mc "Display nearby tags/heads"] \