]> git.ipfire.org Git - thirdparty/git.git/commitdiff
gitk: Legacy widgets doesn't have combobox
authorYOKOTA Hiroshi <yokota.hgml@gmail.com>
Sun, 4 May 2025 17:57:07 +0000 (02:57 +0900)
committerJohannes Sixt <j6t@kdbg.org>
Sat, 10 May 2025 17:55:17 +0000 (19:55 +0200)
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>
gitk

diff --git a/gitk b/gitk
index 11ad639d0622aeb26c1a5ee84d5d5eaf7d535893..966833a19eb8c513dfe014ae0062a96355a1e80a 100755 (executable)
--- 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"] \