Skip to content

Commit 0933b04

Browse files
Mark Hillspaulusmack
authored andcommitted
gitk: Set the font for all spinbox widgets
Use the X resources to set the font, removing the need to set the font for specific widgets. Signed-off-by: Mark Hills <[email protected]> Signed-off-by: Paul Mackerras <[email protected]>
1 parent 75eb2af commit 0933b04

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

gitk

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1879,6 +1879,7 @@ proc setoptions {} {
18791879
option add *Message.font uifont startupFile
18801880
option add *Entry.font uifont startupFile
18811881
option add *Labelframe.font uifont startupFile
1882+
option add *Spinbox.font textfont startupFile
18821883
}
18831884

18841885
# Make a menu and submenus.
@@ -2229,7 +2230,7 @@ proc makewindow {} {
22292230
-command changediffdisp -variable diffelide -value {1 0}
22302231
${NS}::label .bleft.mid.labeldiffcontext -text " [mc "Lines of context"]: "
22312232
pack .bleft.mid.diff .bleft.mid.old .bleft.mid.new -side left
2232-
spinbox .bleft.mid.diffcontext -width 5 -font textfont \
2233+
spinbox .bleft.mid.diffcontext -width 5 \
22332234
-from 0 -increment 1 -to 10000000 \
22342235
-validate all -validatecommand "diffcontextvalidate %P" \
22352236
-textvariable diffcontextstring

0 commit comments

Comments
 (0)