From: Stefan Haller Date: Sun, 14 Nov 2010 12:21:50 +0000 (+0100) Subject: gitk: Prevent the text pane from becoming editable X-Git-Tag: v1.7.4-rc0~43^2~2 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=120ea892a001db97c9ee83272e0c666e9825637a;p=git.git gitk: Prevent the text pane from becoming editable When setting the "Patch/Tree" radio buttons to "Tree" and clicking on a file to display it, the text pane would accidentally become editable (because of the early return in getblobline). Signed-off-by: Stefan Haller Signed-off-by: Paul Mackerras --- diff --git a/gitk b/gitk index c5aa844ef..8f6590076 100755 --- a/gitk +++ b/gitk @@ -7327,6 +7327,7 @@ proc getblobline {bf id} { [lindex [split $commentend .] 0]}] mark_ctext_line $lnum } + $ctext config -state disabled return 0 } $ctext config -state disabled