diff options
| author | YOKOTA Hiroshi <yokota.hgml@gmail.com> | 2025-05-05 02:57:07 +0900 |
|---|---|---|
| committer | Johannes Sixt <j6t@kdbg.org> | 2025-05-10 19:55:17 +0200 |
| commit | daa364cfb7a1cda324ec5c5cdaf92bcad429cfbd (patch) | |
| tree | 5de7c65e5e3fc802385b8e059d3fc296c13ed239 | |
| parent | Merge branch 'at/translation-tamil' (diff) | |
| download | git-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-x | gitk | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -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"] \ |
