git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* gitk: Failure of new tabbed preferences dialog
@ 2012-03-29 17:31 Ramsay Jones
  2012-04-01 22:00 ` Pat Thoyts
  0 siblings, 1 reply; 8+ messages in thread
From: Ramsay Jones @ 2012-03-29 17:31 UTC (permalink / raw)
  To: patthoyts; +Cc: Junio C Hamano, GIT Mailing-list

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

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

end of thread, other threads:[~2012-04-03 16:53 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-29 17:31 gitk: Failure of new tabbed preferences dialog Ramsay Jones
2012-04-01 22:00 ` Pat Thoyts
2012-04-01 22:00   ` [PATCH 1/2] gitk: fix tabbed preferences construction when using tcl 8.4 Pat Thoyts
2012-04-01 22:00   ` [PATCH 2/2] gitk: fix setting font display with new tabbed dialog layout Pat Thoyts
2012-04-02 16:19   ` gitk: Failure of new tabbed preferences dialog Junio C Hamano
2012-04-02 22:03     ` Junio C Hamano
2012-04-03 12:19     ` Paul Mackerras
2012-04-03 16:53       ` Junio C Hamano

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).