slitaz-tools rev 443
mountbox: few gui changes
author | Rohit Joshi <jozee@slitaz.org> |
---|---|
date | Fri Mar 19 11:49:42 2010 +0000 (2010-03-19) |
parents | 931970fbf483 |
children | c44be8c6a703 |
files | tinyutils/mountbox |
line diff
1.1 --- a/tinyutils/mountbox Thu Mar 18 17:34:53 2010 +0000 1.2 +++ b/tinyutils/mountbox Fri Mar 19 11:49:42 2010 +0000 1.3 @@ -59,9 +59,20 @@ 1.4 MAIN_DIALOG=' 1.5 <window title="Mountbox" icon-name="media-flash"> 1.6 <vbox> 1.7 - 1.8 + <frame> 1.9 <tree> 1.10 - <width>520</width><height>120</height> 1.11 + <width>500</width><height>130</height> 1.12 + <variable>DEVICE</variable> 1.13 + <label>Umounted dev|Size|System|Type|Label|Boot|Start|End|Blocks|Id|UUID</label> 1.14 + <input>/usr/lib/slitaz/libmountbox list-umounted</input> 1.15 + <action>/usr/lib/slitaz/libmountbox umounted-fs-infos</action> 1.16 + <action>refresh:MOUNTED</action> 1.17 + <action>refresh:DEVICE</action> 1.18 + </tree> 1.19 + </frame> 1.20 + <frame> 1.21 + <tree> 1.22 + <width>500</width><height>110</height> 1.23 <variable>MOUNTED</variable> 1.24 <label>Mounted fs|Size|Used|Available|Use%|Mounted on|Option</label>' 1.25 1.26 @@ -86,35 +97,36 @@ 1.27 <action>refresh:DEVICE</action> 1.28 </tree> 1.29 1.30 - <tree> 1.31 - <width>500</width><height>120</height> 1.32 - <variable>DEVICE</variable> 1.33 - <label>Umounted dev|Size|System|Type|Label|Boot|Start|End|Blocks|Id|UUID</label> 1.34 - <input>/usr/lib/slitaz/libmountbox list-umounted</input> 1.35 - <action>/usr/lib/slitaz/libmountbox umounted-fs-infos</action> 1.36 - <action>refresh:MOUNTED</action> 1.37 - <action>refresh:DEVICE</action> 1.38 - </tree> 1.39 + </frame> 1.40 + 1.41 <hbox> 1.42 - <text use-markup="true"> 1.43 + <text use-markup="true" > 1.44 <label>"<b>Mount selected device on:</b>"</label> 1.45 </text> 1.46 <entry accept="directory"> 1.47 <default>/media/cdrom</default> 1.48 - <variable>MOUNT_POINT</variable>' 1.49 + <variable>MOUNT_POINT</variable> 1.50 + </entry> 1.51 + <button> 1.52 + <label>Browse</label> 1.53 + <input file icon="folder-open"></input> 1.54 + <action type="fileselect">MOUNT_POINT</action> 1.55 + </button> 1.56 + </hbox> 1.57 + <hbox> 1.58 + <text use-markup="true" wrap="false"> 1.59 + <label>"Tip: Select an unmounted /dev. Then, type or select a folder to mount. Then, press a button. 1.60 +"</label> 1.61 + </text> 1.62 + </hbox> 1.63 + ' 1.64 1.65 # Get the mount points list. 1.66 MAIN_DIALOG=${MAIN_DIALOG}${DEVICE} 1.67 1.68 # Actions buttons (mount, umount, eject, etc). 1.69 ACTIONS=' 1.70 - </entry> 1.71 - <button> 1.72 - <label>Browse</label> 1.73 - <input file icon="folder-open"></input> 1.74 - <action type="fileselect">MOUNT_POINT</action> 1.75 - </button> 1.76 - </hbox> 1.77 + 1.78 <hbox> 1.79 <button> 1.80 <label>Mount</label>