Package: gitk Version: 1:1.5.4.4-1 Severity: normal
Attempt to change backround or foreground colors in the Preferences dialog causes that the invalid color value (with extra curve brackets around the correct value) is written to ~/.gitk. Also, some other dialogs stop working immediately after this change. Attempt to restart gitk again fails until the invalid color value is removed from ~/.gitk. Steps to reproduce the problem: 1. Go to Edit->Preferences 2. Change the background color a bit. 3. Go to View->New View gitk reports the following error: === unknown color name "{#eeffff}" unknown color name "{#eeffff}" (processing "-background" option) invoked from within "entry $top.args -width 50 -textvariable newviewargs($n) -background $bgcolor" (procedure "vieweditor" line 13) invoked from within "vieweditor $top $nextviewnum [mc "Gitk view definition"]" (procedure "newview" line 14) invoked from within "newview 0" invoked from within ".#bar.#bar#view invoke active" ("uplevel" body line 1) invoked from within "uplevel #0 [list $w invoke active]" (procedure "tk::MenuInvoke" line 50) invoked from within "tk::MenuInvoke .#bar.#bar#view 1" (command bound to event) === Attempt to restart gitk fails: === Error in startup script: unknown color name "{#e9ffff}" (processing "-background" option) invoked from within "canvas $canv -selectbackground $selectbgcolor -background $bgcolor -bd 0 -yscrollincr $linespc -yscrollcommand "scrollcanv $cscroll"" (procedure "makewindow" line 64) invoked from within "makewindow" (file "/usr/bin/gitk" line 8632) === This error is caused by an incorrect value written by the Preferences dialog in the ~/.gitk file: set bgcolor {{#e9ffff}} It seems the problem is related to using tk8.5 on Debian/Lenny, because the same gitk does not exhibit this problem with tk8.4. -- System Information: Debian Release: lenny/sid APT prefers unstable APT policy: (500, 'unstable') Architecture: i386 (i686) Kernel: Linux 2.6.18-6-k7 (SMP w/1 CPU core) Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) Shell: /bin/sh linked to /bin/bash Versions of packages gitk depends on: ii git-core 1:1.5.4.4-1 fast, scalable, distributed revisi ii tk8.5 8.5.1-2 Tk toolkit for Tcl and X11, v8.5 - gitk recommends no packages. -- no debconf information -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]