git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH resend] gitk: font and theme use
@ 2010-01-13 20:40 Mark Hills
  2010-01-13 20:40 ` [PATCH 1/5] gitk: Remove forced use of sans-serif font Mark Hills
  0 siblings, 1 reply; 7+ messages in thread
From: Mark Hills @ 2010-01-13 20:40 UTC (permalink / raw)
  To: Paul Mackerras; +Cc: git

Hi Paul,

I'm following up this email with a re-send of some earlier patches for 
your review (previously sent to the list). They make some fixes to the 
font and theme use, mainly for consistency.

Since last time and have based them on gitk.git master (instead of 
git.git); no other changes.

Thanks

-- 
Mark

^ permalink raw reply	[flat|nested] 7+ messages in thread
* [PATCH 1/5] gitk: Remove forced use of sans-serif font
@ 2009-12-28 20:03 Mark Hills
  2009-12-28 20:04 ` [PATCH 2/5] gitk: Set the font for all spinbox widgets Mark Hills
  0 siblings, 1 reply; 7+ messages in thread
From: Mark Hills @ 2009-12-28 20:03 UTC (permalink / raw)
  To: git

The X resources set using uifont cover this case.

Signed-off-by: Mark Hills <mark@pogo.org.uk>
---
 gitk-git/gitk |   12 ------------
 1 files changed, 0 insertions(+), 12 deletions(-)

diff --git a/gitk-git/gitk b/gitk-git/gitk
index 364c7a8..c58fd58 100644
--- a/gitk-git/gitk
+++ b/gitk-git/gitk
@@ -10513,7 +10513,6 @@ proc mkfontdisp {font top which} {
     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
@@ -10776,15 +10775,6 @@ proc doprefs {} {
     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
@@ -11396,8 +11386,6 @@ namespace import ::msgcat::mc
 
 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]
-- 
1.6.6

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2010-01-13 20:40 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-13 20:40 [PATCH resend] gitk: font and theme use Mark Hills
2010-01-13 20:40 ` [PATCH 1/5] gitk: Remove forced use of sans-serif font Mark Hills
2010-01-13 20:40   ` [PATCH 2/5] gitk: Set the font for all spinbox widgets Mark Hills
2010-01-13 20:40     ` [PATCH 3/5] gitk: Set the font for all listbox widgets Mark Hills
2010-01-13 20:40       ` [PATCH 4/5] gitk: Disable option when themed widgets are not available Mark Hills
2010-01-13 20:40         ` [PATCH 5/5] gitk: Use consistent font for all text input fields Mark Hills
  -- strict thread matches above, loose matches on Subject: below --
2009-12-28 20:03 [PATCH 1/5] gitk: Remove forced use of sans-serif font Mark Hills
2009-12-28 20:04 ` [PATCH 2/5] gitk: Set the font for all spinbox widgets Mark Hills
2009-12-28 20:04   ` [PATCH 3/5] gitk: Set the font for all listbox widgets Mark Hills
2009-12-28 20:04     ` [PATCH 4/5] gitk: Disable option when themed widgets are not available Mark Hills

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).