From: Ramsay Jones Date: Thu, 29 Mar 2012 17:31:29 GMT Subject: gitk: Failure of new tabbed preferences dialog Message-ID: <4F749C71.7050201@ramsay1.demon.co.uk> Hi Pat, I just tried the new gitk (master @fae9d76) and, since I don't have themed widgets, the preferences menu item uses the emulated tabbed dialog code, which fails like so: can't read "col": no such variable can't read "col": no such variable (reading value of variable to increment) invoked from within "incr col" (procedure "doprefs" line 36) invoked from within "doprefs" (menu invoke) I tried the following (maybe *too* obvious) fix: -- >8 -- diff --git a/gitk-git/gitk b/gitk-git/gitk index 651b740..68cd1a1 100755 --- a/gitk-git/gitk +++ b/gitk-git/gitk @@ -11012,6 +11012,7 @@ proc doprefs {} { lappend pages [prefspage_general $notebook] [mc "General"] lappend pages [prefspage_colors $notebook] [mc "Colors"] lappend pages [prefspage_fonts $notebook] [mc "Fonts"] + set col 0 foreach {page title} $pages { if {$use_notebook} { $notebook add $page -text $title -- 8< -- which seems to work. HTH ATB, Ramsay Jones