From: Shawn O. Pearce Date: Thu, 01 Feb 2007 19:24:32 GMT Subject: Re: [PATCH] Make gitk work reasonably well on Cygwin. Message-ID: <20070201192432.GD18608@spearce.org> In-Reply-To: <81b0412b0702010003t7becddf3x8fe6b36b0d84599b@mail.gmail.com> Alex Riesen wrote: > On 2/1/07, Seth Falcon wrote: > > > >> I am not in X right now and won't be able to look at it myself > >> tonight. Could folks on MacOS comment on Mark's patch? > > > >I gave it a quick spin on OS X. gitk loads with a different geometry > >than it had before, but seems to work the same. If this fixes things > >elsewhere, it seems fine here. > > > > FWIW, I confirm that. Much better. Mouse selection still does not > work in patch pane, but broken layout was the most annoying. The trick to getting mouse selection to work on Mac OS X on a disabled text field (which is what that patch pane is): bind $damn_text_widget [list focus $damn_text_widget] Apparently the disabled text widgets on Mac OS X don't receive focus unless its forced by the application. :-( This trick doesn't harm a Tk application running on Windows, its safe to just always setup the binding. I'm using it in git-gui for the diff pane. -- Shawn.