git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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

From
SHStefan Haller <lists@haller-berlin.de>
Date
Nov 14, 2010, 12:21 UTC
Message-ID
<1289737310-33265-1-git-send-email-lists@haller-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
Next: Paul Mackerras
Message 1 of 2 in “gitk: Prevent the text pane from becoming editable”
  1. gitk: Prevent the text pane from becoming editableStefan Haller, Nov 14, 2010
  2. Paul MackerrasDec 12, 2010

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.