Fossil SCM

Set text widgets to "-state disabled" after loading data.

joel 2013-07-10 21:41 UTC sbsreloaded
Commit 302ab3a4e81ec124a320ac2a266cdf1d7dae5586
1 file changed +7 -5
+7 -5
--- src/diffcmd.c
+++ src/diffcmd.c
@@ -709,15 +709,17 @@
709709
@ }
710710
@ }
711711
@ }
712712
@ close $in
713713
@
714
-@ foreach c {.lnA .mkr .lnB} {
715
-@ $c config -width $widths([colType $c])
716
-@ }
717
-@ foreach c {.txtA .txtB} {
718
-@ $c config -tabs [expr {[font measure mono 0]*($widths(txt)+1)}]
714
+@ foreach c [cols] {
715
+@ if {[colType $c] eq "txt"} {
716
+@ $c config -tabs [expr {[font measure mono 0]*($widths(txt)+1)}]
717
+@ } else {
718
+@ $c config -width $widths([colType $c])
719
+@ }
720
+@ $c config -state disabled
719721
@ }
720722
@ }
721723
@
722724
@ proc viewDiff {idx} {
723725
@ .files config -text [.files.menu entrycget $idx -label]
724726
--- src/diffcmd.c
+++ src/diffcmd.c
@@ -709,15 +709,17 @@
709 @ }
710 @ }
711 @ }
712 @ close $in
713 @
714 @ foreach c {.lnA .mkr .lnB} {
715 @ $c config -width $widths([colType $c])
716 @ }
717 @ foreach c {.txtA .txtB} {
718 @ $c config -tabs [expr {[font measure mono 0]*($widths(txt)+1)}]
 
 
719 @ }
720 @ }
721 @
722 @ proc viewDiff {idx} {
723 @ .files config -text [.files.menu entrycget $idx -label]
724
--- src/diffcmd.c
+++ src/diffcmd.c
@@ -709,15 +709,17 @@
709 @ }
710 @ }
711 @ }
712 @ close $in
713 @
714 @ foreach c [cols] {
715 @ if {[colType $c] eq "txt"} {
716 @ $c config -tabs [expr {[font measure mono 0]*($widths(txt)+1)}]
717 @ } else {
718 @ $c config -width $widths([colType $c])
719 @ }
720 @ $c config -state disabled
721 @ }
722 @ }
723 @
724 @ proc viewDiff {idx} {
725 @ .files config -text [.files.menu entrycget $idx -label]
726

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button