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

Re: [PATCH] Make gitk work reasonably well on Cygwin.

From
Shawn O. Pearce <spearce@spearce.org>
Date
Feb 1, 2007, 19:24 UTC
Message-ID
<20070201192432.GD18608@spearce.org>
In-Reply-To
<81b0412b0702010003t7becddf3x8fe6b36b0d84599b@mail.gmail.com>
Alex Riesen <raa.lkml@gmail.com> wrote:
Show 12 quoted lines
> On 2/1/07, Seth Falcon <sethfalcon@gmail.com> 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 <Button-1> [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.
Previous: Mark LevedahlNext: Johannes Schindelin
Message 11 of 23 in “Make gitk work reasonably well on Cygwin.”
  1. Make gitk work reasonably well on Cygwin.Mike Nefari, Jan 31, 2007
  2. Johannes SchindelinJan 31, 2007
  3. Mark LevedahlJan 31, 2007
  4. Johannes SixtJan 31, 2007
  5. Johannes SchindelinJan 31, 2007
  6. Mark LevedahlFeb 1, 2007
  7. Junio C HamanoFeb 1, 2007
  8. Seth FalconFeb 1, 2007
  9. Alex RiesenFeb 1, 2007
  10. Mark LevedahlFeb 1, 2007
  11. Shawn O. PearceFeb 1, 2007
  12. Johannes SchindelinFeb 1, 2007
  13. Mark LevedahlFeb 1, 2007
  14. Johannes SchindelinFeb 1, 2007
  15. Mark LevedahlFeb 1, 2007
  16. Christian MICHONFeb 1, 2007
  17. Johannes SixtFeb 1, 2007
  18. Johannes SchindelinFeb 1, 2007
  19. Mark LevedahlFeb 1, 2007
  20. Mark LevedahlFeb 1, 2007
  21. Johannes SixtJan 31, 2007
  22. Alex RiesenJan 31, 2007
  23. Mark LevedahlJan 31, 2007

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.