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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> From: Erik Faye-Lund [mailto:kusmabite@xxxxxxxxx]
> 
> 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)
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]