From: YOKOTA Hiroshi Date: Sun, 4 May 2025 17:57:07 +0000 (+0900) Subject: gitk: Legacy widgets doesn't have combobox X-Git-Tag: v2.50.0-rc1~18^2~1^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=daa364cfb7a1cda324ec5c5cdaf92bcad429cfbd;p=thirdparty%2Fgit.git 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 Signed-off-by: Johannes Sixt --- 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"] \