# [PATCH] gitk: Prevent the text pane from becoming editable

2 messages from 2010-11-14 to 2010-12-12. Participants: Stefan Haller, Paul Mackerras.
Thread: https://gitlist.dev/t/25741

## Stefan Haller, 2010-11-14 12:21

Subject: [PATCH] gitk: Prevent the text pane from becoming editable
Message-ID: <1289737310-33265-1-git-send-email-lists@haller-berlin.de>
URL: https://gitlist.dev/e/1289737310-33265-1-git-send-email-lists%40haller-berlin.de

```
From: Stefan Haller <stefan@haller-berlin.de>

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 <stefan@haller-berlin.de>
---
 gitk |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/gitk b/gitk
index 45e3380..260be1b 100755
--- a/gitk
+++ b/gitk
@@ -7303,6 +7303,7 @@ proc getblobline {bf id} {
 			    [lindex [split $commentend .] 0]}]
 	    mark_ctext_line $lnum
 	}
+	$ctext config -state disabled
 	return 0
     }
     $ctext config -state disabled
-- 
1.7.3.2.154.gcfae0

```

## Paul Mackerras, 2010-12-12 04:24

Subject: Re: [PATCH] gitk: Prevent the text pane from becoming editable
Message-ID: <20101212042436.GF3788@brick.ozlabs.ibm.com>
URL: https://gitlist.dev/e/20101212042436.GF3788%40brick.ozlabs.ibm.com
In-Reply-To: <1289737310-33265-1-git-send-email-lists@haller-berlin.de>

```
On Sun, Nov 14, 2010 at 01:21:50PM +0100, Stefan Haller wrote:
> From: Stefan Haller <stefan@haller-berlin.de>
> 
> 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).

Thanks, applied.

Paul.

```
