Code

git-gui: Use arror cursor in blame viewer file data
authorShawn O. Pearce <spearce@spearce.org>
Fri, 1 Jun 2007 06:59:21 +0000 (02:59 -0400)
committerShawn O. Pearce <spearce@spearce.org>
Wed, 6 Jun 2007 05:26:45 +0000 (01:26 -0400)
Since we don't allow the user to select text from the file
viewer right now I'm disabling the normal text cursor and
putting in a plain arror instead.  This way users don't
think they can select and copy text, because they can't.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
lib/blame.tcl

index 86160092c662673dfe0d852228097d9a68ed91df..33596cd892ab8065fa1282bf0e6c723ac3ae5a01 100644 (file)
@@ -38,6 +38,8 @@ variable group_colors {
 }
 
 constructor new {i_commit i_path} {
+       global cursor_ptr
+
        set commit $i_commit
        set path   $i_path
 
@@ -149,6 +151,7 @@ constructor new {i_commit i_path} {
                $w_load \
                $w_line \
                $w_file] {
+               $i conf -cursor $cursor_ptr
                $i conf -yscrollcommand \
                        [list many2scrollbar [list \
                        $w_cgrp \