public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Re: gitk fix for set uicolor SystemButtonFace
@ 2012-02-24 22:57 Matt Seitz (matseitz)
  0 siblings, 0 replies; 4+ messages in thread
From: Matt Seitz (matseitz) @ 2012-02-24 22:57 UTC (permalink / raw)
  To: cygwin

"Earnie Boyd" wrote: 
> While this resolves an immediate issue you should determine the fix
> for platform determination in the upstream source so that the correct
> file is created in the first place.

Yes, I have also suggested exactly that on the upstream mailing list:

http://marc.info/?t=132994885500006&r=1&w=2

But anyone who already installed gitk while running the old Cygwin tcltk
8.4.x. won't be helped by an upstream patch.  An upstream patch will
only help avoid similar problems in the future.


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

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

* Re: gitk fix for set uicolor SystemButtonFace
  2012-02-23 12:53 ` Earnie Boyd
@ 2012-02-23 13:07   ` Eric Blake
  0 siblings, 0 replies; 4+ messages in thread
From: Eric Blake @ 2012-02-23 13:07 UTC (permalink / raw)
  To: cygwin

[-- Attachment #1: Type: text/plain, Size: 1318 bytes --]

On 02/23/2012 05:53 AM, Earnie Boyd wrote:
> On Wed, Feb 22, 2012 at 4:54 PM, Matt Seitz (matseitz) wrote:
>> "Eric Blake (cygwin)" wrote:
>>>
>>> This release should cater to the fact that tcl is now X-based.  Before
>>> reporting any problems with gitk or git-gui, first check that you are
>>> running an X server.  Also, gitk will complain if your ~/.gitk has a
>>> line 'set uicolor SystemButtonFace'; there's nothing I can do about it
>>> at a packaging level, but you can remove the offending line to get
>> past it.
>>
>> Below is a diff of how I fixed the problem in my existing .gitk file.
> 
> While this resolves an immediate issue you should determine the fix
> for platform determination in the upstream source so that the correct
> file is created in the first place.

The problem only occurs if you have a native-tcl run of gitk that
created ~/.gitk, then upgrade git to the X-tcl version, and reload that
~/.gitk.  If you only ever used gitk after installing the X-tcl version,
the upstream code is doing the correct thing.

But yes, an upstream patch that teaches gitk to be tolerant regardless
of which style ~/.gitk was previously created in would be appreciated.

-- 
Eric Blake   eblake@redhat.com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 620 bytes --]

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

* Re: gitk fix for set uicolor SystemButtonFace
  2012-02-22 21:54 Matt Seitz (matseitz)
@ 2012-02-23 12:53 ` Earnie Boyd
  2012-02-23 13:07   ` Eric Blake
  0 siblings, 1 reply; 4+ messages in thread
From: Earnie Boyd @ 2012-02-23 12:53 UTC (permalink / raw)
  To: cygwin

On Wed, Feb 22, 2012 at 4:54 PM, Matt Seitz (matseitz) wrote:
> "Eric Blake (cygwin)" wrote:
>>
>> This release should cater to the fact that tcl is now X-based.  Before
>> reporting any problems with gitk or git-gui, first check that you are
>> running an X server.  Also, gitk will complain if your ~/.gitk has a
>> line 'set uicolor SystemButtonFace'; there's nothing I can do about it
>> at a packaging level, but you can remove the offending line to get
> past it.
>
> Below is a diff of how I fixed the problem in my existing .gitk file.

While this resolves an immediate issue you should determine the fix
for platform determination in the upstream source so that the correct
file is created in the first place.

-- 
Earnie
-- https://sites.google.com/site/earnieboyd

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

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

* gitk fix for set uicolor SystemButtonFace
@ 2012-02-22 21:54 Matt Seitz (matseitz)
  2012-02-23 12:53 ` Earnie Boyd
  0 siblings, 1 reply; 4+ messages in thread
From: Matt Seitz (matseitz) @ 2012-02-22 21:54 UTC (permalink / raw)
  To: cygwin

"Eric Blake (cygwin)" wrote:
>
> This release should cater to the fact that tcl is now X-based.  Before
> reporting any problems with gitk or git-gui, first check that you are
> running an X server.  Also, gitk will complain if your ~/.gitk has a
> line 'set uicolor SystemButtonFace'; there's nothing I can do about it
> at a packaging level, but you can remove the offending line to get
past it.

Below is a diff of how I fixed the problem in my existing .gitk file.

The source of the problem is that gitk creates a Win32 specific .gitk
file if tk reports that the windowing system is Win32:
https://github.com/gitster/git/commit/1924d1bc0dc99cd3460d3551671908cc76
c09d3b

Now that Cygwin has changed tk to use the X11 windowing system instead
of Win32, the Win32 .gitk file no longer works.

The fix is to change the .gitk file to use the default settings:

---
 .gitk |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/.gitk b/.gitk
index 6f48d0c..fd50dc9 100755
--- a/.gitk
+++ b/.gitk
@@ -14,15 +14,15 @@ set hideremotes 0
 set showlocalchanges 1
 set datetimeformat {%Y-%m-%d %H:%M:%S}
 set limitdiffs 1
-set uicolor SystemButtonFace
+set uicolor grey85
 set want_ttk 1
-set bgcolor SystemWindow
-set fgcolor SystemButtonText
+set bgcolor white
+set fgcolor black
 set colors {green red blue magenta darkgrey brown orange}
 set diffcolors {red "#00a000" blue}
 set markbgcolor #e0e0ff
 set diffcontext 3
-set selectbgcolor SystemHighlight
+set selectbgcolor gray85
 set extdifftool meld
 set perfile_attrs 0
 set geometry(main) 1235x672+22+93



--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

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

end of thread, other threads:[~2012-02-24 22:57 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-02-24 22:57 gitk fix for set uicolor SystemButtonFace Matt Seitz (matseitz)
  -- strict thread matches above, loose matches on Subject: below --
2012-02-22 21:54 Matt Seitz (matseitz)
2012-02-23 12:53 ` Earnie Boyd
2012-02-23 13:07   ` Eric Blake

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 read-only IMAP folder(s) and NNTP newsgroup(s).