summaryrefslogtreecommitdiff
path: root/git-gui.sh
diff options
context:
space:
mode:
authorShawn O. Pearce <spearce@spearce.org>2007-09-16 23:15:21 -0400
committerShawn O. Pearce <spearce@spearce.org>2007-09-16 23:15:21 -0400
commit704396bc2a13f8843689d3fab2211a0b2f364652 (patch)
tree809b6b31f30daaf27fd1080d0819a0fd0dd5c1d1 /git-gui.sh
parent31bb1d1b2d1e893836b0d2b091fed9e39ee84853 (diff)
parent3849bfba84fb5b0e9d46920f62105b4e1dd97e63 (diff)
downloadgit-704396bc2a13f8843689d3fab2211a0b2f364652.tar.gz
Merge branch 'maint'
* maint: git-gui: Disable native platform text selection in "lists" Conflicts: lib/browser.tcl
Diffstat (limited to 'git-gui.sh')
-rwxr-xr-xgit-gui.sh14
1 files changed, 12 insertions, 2 deletions
diff --git a/git-gui.sh b/git-gui.sh
index 4682487ade..3243037861 100755
--- a/git-gui.sh
+++ b/git-gui.sh
@@ -510,6 +510,16 @@ proc tk_optionMenu {w varName args} {
return $m
}
+proc rmsel_tag {text} {
+ $text tag conf sel \
+ -background [$text cget -background] \
+ -foreground [$text cget -foreground] \
+ -borderwidth 0
+ $text tag conf in_sel -background lightgray
+ bind $text <Motion> break
+ return $text
+}
+
######################################################################
##
## find git
@@ -2172,8 +2182,8 @@ pack $ui_workdir -side left -fill both -expand 1
.vpane.files add .vpane.files.workdir -sticky nsew
foreach i [list $ui_index $ui_workdir] {
- $i tag conf in_diff -background lightgray
- $i tag conf in_sel -background lightgray
+ rmsel_tag $i
+ $i tag conf in_diff -background [$i tag cget in_sel -background]
}
unset i