git/list[1] front-page[2] threads[3] people[4] search[5] about
 

RE: gitk: set uicolor SystemButtonFace error on X11 if .gitk created using Win32 tk

From
MMMatt Seitz (matseitz) <matseitz@cisco.com>
Date
Feb 23, 2012, 19:20 UTC
Message-ID
<70952A932255A2489522275A628B97C31294E764@xmb-sjc-233.amer.cisco.com>
In-Reply-To
<CABPQNSZqX0_YAn=mOpuRquG9OzFgwS9fQ6=YXqULxMz-hbH6Zw@mail.gmail.com>
Show 5 quoted lines
> From: Erik Faye-Lund [mailto:kusmabite@gmail.com]
> 
> Are you saying that the tk shipped with recent Cygwin reports "win32"
> for "[tk windowingsystem]", but does not recognize the
> "SystemButtonFace" etc values?
Here is what I am saying:
1.  Cygwin tk 8.4.x and earlier:
-Reports "win32" for "[tk windowingsystem]"
-Recognizes the "SystemButtonFace" etc values
2.  Cygwin tk 8.5.11:
-Reports "x11" for "[tk windowingsystem]"
-Does not recognize the "SystemButtonFace" etc values
> Does this patch help?

No, this has the same problem: if gitk is installed using a tk that reports "win32" for "[tk windowingsystem]", then gitk hard codes win32 specific values into .gitk. If the user later changes to a tk that doesn't support win32 specific values, gitk will no longer work.

Two use cases:  
1.  My situation:  User replaces a win32 tk with an x11 tk
2.  User uses a common .gitk file when running Windows and Linux.
Here's the error:
$ uname -a
CYGWIN_NT-5.1 matseitz-wxp 1.7.10(0.259/5/3) 2012-02-05 12:36 i686
Cygwin
$ wish
% tk windowingsystem
x11
% exit
$ gitk &
[1] 6312
$ Error in startup script: unknown color name "ButtonFace"
    while executing
"winfo rgb . $c"
    (procedure "setui" line 3)
    invoked from within
"setui $uicolor"
    (file "/usr/bin/gitk" line 11522)
Previous: Erik Faye-Lund
Message 3 of 3 in “gitk: set uicolor SystemButtonFace error on X11 if .gitk created using Win32 tk”
  1. Matt Seitz (matseitz)Feb 22, 2012
  2. Erik Faye-LundFeb 23, 2012
  3. Matt Seitz (matseitz)Feb 23, 2012

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.