delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2012/02/22/16:54:56

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-11.8 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,RCVD_IN_DNSWL_HI,TW_KB,TW_TB,T_RP_MATCHES_RCVD,USER_IN_DEF_DKIM_WL
X-Spam-Check-By: sourceware.org
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: Av0EAFtjRU+rRDoG/2dsb2JhbABEsk+BB4FzAQEBBBIBHQpRASAKBhgHVwEEGxqHaJ5OgScBlwsEgleKFRdHEQUDAoRMAXANBQIUAgMGAhMZgjtjBIhPn3c
MIME-Version: 1.0
X-CR-Hashedpuzzle: AP2S Abhs A5iQ Bbhl B3ZV CCBP D6A/ D/5R EHnG F7Lp GPQJ HzP+ IHRG IihF I7we JIxe;1;YwB5AGcAdwBpAG4AQABjAHkAZwB3AGkAbgAuAGMAbwBtAA==;Sosha1_v1;7;{71081C69-6309-4DD4-8A7E-0BA49ED0ADD1};bQBhAHQAcwBlAGkAdAB6AEAAYwBpAHMAYwBvAC4AYwBvAG0A;Wed, 22 Feb 2012 21:54:27 GMT;ZwBpAHQAawAgAGYAaQB4ACAAZgBvAHIAIABzAGUAdAAgAHUAaQBjAG8AbABvAHIAIABTAHkAcwB0AGUAbQBCAHUAdAB0AG8AbgBGAGEAYwBlAA==
X-CR-Puzzleid: {71081C69-6309-4DD4-8A7E-0BA49ED0ADD1}
Subject: gitk fix for set uicolor SystemButtonFace
Date: Wed, 22 Feb 2012 13:54:27 -0800
Message-ID: <70952A932255A2489522275A628B97C31288F9F2@xmb-sjc-233.amer.cisco.com>
From: "Matt Seitz (matseitz)" <matseitz AT cisco DOT com>
To: <cygwin AT cygwin DOT com>
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id q1MLsr82015460

"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


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019