Skip to content

Commit

Permalink
gitk: Use a spinbox for setting tabstop settings
Browse files Browse the repository at this point in the history
The tabstop must be a smallish positive integer, and a spinbox is the
accepted UI control to accomplish this limiting rather than the text
entry box previously used.

Signed-off-by: Mark Levedahl <mdl123@verizon.net>
  • Loading branch information
Mark Levedahl authored and Paul Mackerras committed Jun 28, 2007
1 parent 706d6c3 commit 6bc9d1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gitk
Original file line number Diff line number Diff line change
Expand Up @@ -6972,7 +6972,7 @@ proc doprefs {} {
pack $top.ntag.b $top.ntag.l -side left
grid x $top.ntag -sticky w
label $top.tabstopl -text "tabstop" -font optionfont
entry $top.tabstop -width 10 -textvariable tabstop
spinbox $top.tabstop -from 1 -to 20 -width 4 -textvariable tabstop
grid x $top.tabstopl $top.tabstop -sticky w

label $top.cdisp -text "Colors: press to choose"
Expand Down

0 comments on commit 6bc9d1e

Please sign in to comment.