Check-in [e4f3fad8c3]
Not logged in

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview

SHA1 Hash:e4f3fad8c39d7ef18c07f8a2dcbe1e1ae0d1cc00
Date: 2013-02-21 08:30:43
User: root
Comment:/usr/local/simple_network-setup/sns: scrollbar if more than 11 wifi networks found

Tags And Properties
Changes

Changes to woof-code/rootfs-skeleton/usr/local/simple_network_setup/sns

@@ -25,10 +25,11 @@
 #120204 rodin.s: internationalized.
 #120222 small change to 'connect now' button.
 #120323 replace remaining 'xmessage' with 'pupmessage'.
 #120324 fix syntax error gettext.
 #121117 rerwin: add dropwait option to dhcpcd startup. see also rc.network.
+#130221 vertical scrollbar if more than 9 wireless networks found.
 
 export TEXTDOMAIN=sns___sns
 export OUTPUT_CHARSET=UTF-8
 . gettext.sh
 
@@ -384,11 +385,18 @@
    WIN2MSG1=""
    WIN2BUT1=""
   else
    WIN2MSG1="<text><label>`gettext \"Choose which network you want to use, type of encryption, then click 'CONNECT' button:\"`</label></text>"
    RADIOBUTTONS="`cat /tmp/sns_scan_radiobuttons`"
-   FRAME1="<frame $(gettext 'Wireless networks')><text><label>\" \"</label></text>${RADIOBUTTONS}<text><label>\" \"</label></text></frame>"
+   if [ `cat /tmp/sns_scan_radiobuttons | wc -l` -lt 12 ];then #130221
+    FRAME1="<frame $(gettext 'Wireless networks')><text><label>\" \"</label></text>${RADIOBUTTONS}<text><label>\" \"</label></text></frame>"
+   else
+    #130221 vertical scrollbar...
+    FRAME1="<frame $(gettext 'Wireless networks')><vbox scrollable=\"true\"  height=\"250\" width-request=\"450\" width=\"450\">
+     <text><label>\" \"</label></text>${RADIOBUTTONS}<text><label>\" \"</label></text>
+    </vbox></frame>"
+   fi
    FRAME2="<frame $(gettext 'Encryption')>
    <hbox>
     <vbox>
      <radiobutton><label>$(gettext 'none')</label><variable>BUTSEC_NONE</variable></radiobutton>
      <radiobutton><label>WEP</label><variable>BUTSEC_WEP</variable></radiobutton>