summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Hills <mark@pogo.org.uk>2010-01-13 20:40:19 (GMT)
committerPaul Mackerras <paulus@samba.org>2010-03-20 09:53:21 (GMT)
commit0933b04e5204674784b3ff7bcff68b663e633f8b (patch)
treee09b418573e5594abc9626098f02ba3584e4a1fe
parent75eb2af0e02b9d38742d04929b1c4da46b8d13c9 (diff)
downloadgit-0933b04e5204674784b3ff7bcff68b663e633f8b.zip
git-0933b04e5204674784b3ff7bcff68b663e633f8b.tar.gz
git-0933b04e5204674784b3ff7bcff68b663e633f8b.tar.bz2
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 <mark@pogo.org.uk> Signed-off-by: Paul Mackerras <paulus@samba.org>
-rwxr-xr-xgitk3
1 files changed, 2 insertions, 1 deletions
diff --git a/gitk b/gitk
index 59970af..f1e70ad 100755
--- a/gitk
+++ b/gitk
@@ -1879,6 +1879,7 @@ proc setoptions {} {
option add *Message.font uifont startupFile
option add *Entry.font uifont startupFile
option add *Labelframe.font uifont startupFile
+ option add *Spinbox.font textfont startupFile
}
# Make a menu and submenus.
@@ -2229,7 +2230,7 @@ proc makewindow {} {
-command changediffdisp -variable diffelide -value {1 0}
${NS}::label .bleft.mid.labeldiffcontext -text " [mc "Lines of context"]: "
pack .bleft.mid.diff .bleft.mid.old .bleft.mid.new -side left
- spinbox .bleft.mid.diffcontext -width 5 -font textfont \
+ spinbox .bleft.mid.diffcontext -width 5 \
-from 0 -increment 1 -to 10000000 \
-validate all -validatecommand "diffcontextvalidate %P" \
-textvariable diffcontextstring