summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: decd0a1)
raw | patch | inline | side by side (parent: decd0a1)
author | Mark Hills <mark@pogo.org.uk> | |
Wed, 13 Jan 2010 20:40:18 +0000 (20:40 +0000) | ||
committer | Paul Mackerras <paulus@samba.org> | |
Sat, 20 Mar 2010 09:53:21 +0000 (20:53 +1100) |
The X resources set using uifont cover this case.
Signed-off-by: Mark Hills <mark@pogo.org.uk>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Signed-off-by: Mark Hills <mark@pogo.org.uk>
Signed-off-by: Paul Mackerras <paulus@samba.org>
gitk | patch | blob | history |
index 50773a3d9dba7e87a6bb9f888f9b8c94460fe63d..59970aff39a4cee3f905bd522f3ea1fcbb89a4f6 100755 (executable)
--- a/gitk
+++ b/gitk
set fontpref($font) [set $font]
${NS}::button $top.${font}but -text $which \
-command [list choosefont $font $which]
- if {!$use_ttk} {$top.${font}but configure -font optionfont}
${NS}::label $top.$font -relief flat -font $font \
-text $fontattr($font,family) -justify left
grid x $top.${font}but $top.$font -sticky w
mkfontdisp textfont $top [mc "Diff display font"]
mkfontdisp uifont $top [mc "User interface font"]
- if {!$use_ttk} {
- foreach w {maxpctl maxwidthl showlocal autoselect tabstopl ntag
- ldiff lattr extdifff.l extdifff.b bgbut fgbut
- diffoldbut diffnewbut hunksepbut markbgbut selbgbut
- want_ttk ttk_note} {
- $top.$w configure -font optionfont
- }
- }
-
${NS}::frame $top.buts
${NS}::button $top.buts.ok -text [mc "OK"] -command prefsok -default active
${NS}::button $top.buts.can -text [mc "Cancel"] -command prefscan -default normal
catch {source ~/.gitk}
-font create optionfont -family sans-serif -size -12
-
parsefont mainfont $mainfont
eval font create mainfont [fontflags mainfont]
eval font create mainfontbold [fontflags mainfont 1]