Code

gitk: fix setting font display with new tabbed dialog layout.
authorPat Thoyts <patthoyts@users.sourceforge.net>
Sun, 1 Apr 2012 22:00:52 +0000 (23:00 +0100)
committerJunio C Hamano <gitster@pobox.com>
Mon, 2 Apr 2012 17:21:10 +0000 (10:21 -0700)
The changes to the dialog window tree broke the preview of the selected
font on the button. This corrects that issue.

Signed-off-by: Pat Thoyts <patthoyts@users.sourceforge.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
gitk

diff --git a/gitk b/gitk
index 68cd1a1fc51379f8e4995ebf408d229adce6088d..22270ce46bb73bc8fc8e82409ef0179576f7ba20 100755 (executable)
--- a/gitk
+++ b/gitk
@@ -10795,7 +10795,7 @@ proc fontok {} {
     if {$fontparam(slant) eq "italic"} {
        lappend fontpref($f) "italic"
     }
-    set w $prefstop.$f
+    set w $prefstop.notebook.fonts.$f
     $w conf -text $fontparam(family) -font $fontpref($f)
 
     fontcan