1
0
mirror of https://github.com/git/git.git synced 2024-11-18 04:53:58 +01:00
git/lib
Shawn O. Pearce 3849bfba84 git-gui: Disable native platform text selection in "lists"
Sometimes we use a Tk text widget as though it were a listbox.
This happens typically when we want to show an icon to the left
of the text label or just when a text widget is generally a better
choice then the native listbox widget.

In these cases if we want the user to have control over the selection
we implement our own "in_sel" tag that shows the selected region
and we perform our own selection management in the background
via keybindings and mouse bindings.  In such uses we don't want
the user to be able to activate the native platform selection by
dragging their mouse through the text widget.  Doing so creates a
very confusing display and the user is left wondering what it may
mean to have two different types of selection in the same widget.

Tk doesn't allow us to delete the "sel" tag that it uses internally
to manage the native selection but it will allow us to make it
invisible by setting the tag to have the same display properties
as unselected text.  So long as we don't actually use the "sel"
tag for anything in code its effectively invisible.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
2007-09-16 23:12:19 -04:00
..
blame.tcl
branch_checkout.tcl
branch_create.tcl
branch_delete.tcl
branch_rename.tcl
branch.tcl
browser.tcl git-gui: Disable native platform text selection in "lists" 2007-09-16 23:12:19 -04:00
checkout_op.tcl git-gui: Fix detaching current branch during checkout 2007-09-03 23:01:44 -04:00
choose_font.tcl git-gui: Disable native platform text selection in "lists" 2007-09-16 23:12:19 -04:00
choose_rev.tcl git-gui: Make sure remotes are loaded when picking revisions 2007-07-29 23:44:51 -04:00
class.tcl git-gui: Fix window manager problems on ion3 2007-08-20 00:38:13 -04:00
commit.tcl git-gui: Unify wording to say "to stage" instead of "to add" 2007-07-29 03:09:07 -04:00
console.tcl
database.tcl
diff.tcl git-gui: Assume untracked directories are Git submodules 2007-09-09 20:39:42 -04:00
encoding.tcl
error.tcl
index.tcl git-gui: Paper bag fix "Commit->Revert" format arguments 2007-09-13 20:08:53 -04:00
merge.tcl git-gui: Allow git-merge to use branch names in conflict markers 2007-08-20 02:17:05 -04:00
option.tcl git-gui: Font chooser to handle a large number of font families 2007-09-13 19:07:46 -04:00
remote_branch_delete.tcl
remote.tcl git-gui: Save remote urls obtained from config/remotes setup 2007-07-25 04:23:09 -04:00
shortcut.tcl
status_bar.tcl
transport.tcl