]> git.ipfire.org Git - thirdparty/git.git/commit - git-gui/git-gui.sh
git-gui: Fix mouse cursor behavior when in widgets.
authorShawn O. Pearce <spearce@spearce.org>
Sun, 12 Nov 2006 01:33:30 +0000 (20:33 -0500)
committerShawn O. Pearce <spearce@spearce.org>
Sun, 12 Nov 2006 05:16:03 +0000 (00:16 -0500)
commit6c6dd01a041e628ce6efb583ea865d1a694ff7b2
tree764452b98e620b74294d49d849e1610472c85960
parent0e794311833fd4d6f0c3204a5449372284318bda
git-gui: Fix mouse cursor behavior when in widgets.

The mouse cursor (at least on Windows) seemed to be picking up the
cursor from the sash controls and then never resetting itself back
to the standard text cursor (the I-beam) when it was over a text area
that the user can edit (like the commit buffer) or over a text area
the user can copy from (like the diff viewer).

So now we always set the cursor to left_ptr (which according to the Tk
documentation should be available everywhere) and only for the two text
areas which we use to list file names, as the user clicks in these but
is not permitted to select text.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
git-gui