Skip to content

Commit adcbec1

Browse files
j6tpaulusmack
authored andcommitted
gitk: Use check-buttons' -text property instead of separate labels
Previously the check-buttons' labels in the Preferences were separate widgets. This had the disadvantage that in order to toggle the check-button with the mouse the check-box had to be clicked. With this change the check-box can also be toggled by clicking the label. Signed-off-by: Johannes Sixt <[email protected]> Signed-off-by: Paul Mackerras <[email protected]>
1 parent 97bed03 commit adcbec1

File tree

1 file changed

+10
-20
lines changed

1 file changed

+10
-20
lines changed

gitk

Lines changed: 10 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -10105,36 +10105,26 @@ proc doprefs {} {
1010510105
-font optionfont
1010610106
spinbox $top.maxpct -from 1 -to 100 -width 4 -textvariable maxgraphpct
1010710107
grid x $top.maxpctl $top.maxpct -sticky w
10108-
frame $top.showlocal
10109-
label $top.showlocal.l -text [mc "Show local changes"] -font optionfont
10110-
checkbutton $top.showlocal.b -variable showlocalchanges
10111-
pack $top.showlocal.b $top.showlocal.l -side left
10108+
checkbutton $top.showlocal -text [mc "Show local changes"] \
10109+
-font optionfont -variable showlocalchanges
1011210110
grid x $top.showlocal -sticky w
10113-
frame $top.autoselect
10114-
label $top.autoselect.l -text [mc "Auto-select SHA1"] -font optionfont
10115-
checkbutton $top.autoselect.b -variable autoselect
10116-
pack $top.autoselect.b $top.autoselect.l -side left
10111+
checkbutton $top.autoselect -text [mc "Auto-select SHA1"] \
10112+
-font optionfont -variable autoselect
1011710113
grid x $top.autoselect -sticky w
1011810114

1011910115
label $top.ddisp -text [mc "Diff display options"]
1012010116
grid $top.ddisp - -sticky w -pady 10
1012110117
label $top.tabstopl -text [mc "Tab spacing"] -font optionfont
1012210118
spinbox $top.tabstop -from 1 -to 20 -width 4 -textvariable tabstop
1012310119
grid x $top.tabstopl $top.tabstop -sticky w
10124-
frame $top.ntag
10125-
label $top.ntag.l -text [mc "Display nearby tags"] -font optionfont
10126-
checkbutton $top.ntag.b -variable showneartags
10127-
pack $top.ntag.b $top.ntag.l -side left
10120+
checkbutton $top.ntag -text [mc "Display nearby tags"] \
10121+
-font optionfont -variable showneartags
1012810122
grid x $top.ntag -sticky w
10129-
frame $top.ldiff
10130-
label $top.ldiff.l -text [mc "Limit diffs to listed paths"] -font optionfont
10131-
checkbutton $top.ldiff.b -variable limitdiffs
10132-
pack $top.ldiff.b $top.ldiff.l -side left
10123+
checkbutton $top.ldiff -text [mc "Limit diffs to listed paths"] \
10124+
-font optionfont -variable limitdiffs
1013310125
grid x $top.ldiff -sticky w
10134-
frame $top.lattr
10135-
label $top.lattr.l -text [mc "Support per-file encodings"] -font optionfont
10136-
checkbutton $top.lattr.b -variable perfile_attrs
10137-
pack $top.lattr.b $top.lattr.l -side left
10126+
checkbutton $top.lattr -text [mc "Support per-file encodings"] \
10127+
-font optionfont -variable perfile_attrs
1013810128
grid x $top.lattr -sticky w
1013910129

1014010130
entry $top.extdifft -textvariable extdifftool

0 commit comments

Comments
 (0)