chiark / gitweb /
where-vessels: Ownership smasher is gridded
authorIan Jackson <ian@liberator.relativity.greenend.org.uk>
Sun, 8 Aug 2010 14:31:24 +0000 (15:31 +0100)
committerIan Jackson <ian@liberator.relativity.greenend.org.uk>
Sun, 8 Aug 2010 19:59:56 +0000 (20:59 +0100)
yarrg/where-vessels

index 57ab56a51a77d9a16971b584f5900532629112d7..14d2e0e2fce54153807a5774639c3ed4ba808a84 100755 (executable)
@@ -536,13 +536,14 @@ proc make-smasher {sma label ekind} {
     return [make-control .smash $sma $label $ekind]
 }
 
-proc make-radio-smasher {sma label variable descs} {
+proc make-radio-smasher {sma label variable descs rows inrow} {
     set w [make-smasher $sma $label frame]
+    begin-control-grid $w [llength $descs] $rows $inrow
     for {set i 0} {$i < [llength $descs]} {incr i} {
-       radiobutton $w.v$i \
+       make-control-grid-entry $w ix $i \
+           radiobutton \
            -variable $variable -value $i -command redraw-needed \
            -text [lindex $descs $i]
-       pack $w.v$i -side left
     }
 }
 
@@ -1167,10 +1168,10 @@ proc widgets-setup {} {
     grid .smash.title -row 0 -column 0 -columnspan 2
 
     make-radio-smasher subclass Subclass smash_subclass \
-       {Show Normal/LE Hide}
+       {Show Normal/LE Hide} 1 0
 
     make-radio-smasher owner Owner smash_owner \
-       {Show Yours? You Lock Hide}
+       {Show Yours? {For you} Lock Hide} 2 3
 
     set filterstyle 1
     trace add variable filterstyle write filterstyle-changed