parent
9c6906acfe
commit
a03bf51a18
|
@ -2,4 +2,4 @@
|
|||
|
||||
dn=$(dirname $0)
|
||||
cd $dn
|
||||
gksu python "src/gpyfsa_main.py"
|
||||
gksu python2 "src/gpyfsa_main.py"
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
<property name="default_width">900</property>
|
||||
<property name="default_height">680</property>
|
||||
<property name="destroy_with_parent">True</property>
|
||||
<property name="icon">img/gpyfsa.svg</property>
|
||||
<property name="icon">img/gpyfsa.png</property>
|
||||
<signal name="destroy" handler="on_gpyfsa_destroy"/>
|
||||
<child>
|
||||
<widget class="GtkVBox" id="vbox1">
|
||||
|
@ -777,7 +777,7 @@
|
|||
<widget class="GtkImage" id="i_refresh">
|
||||
<property name="height_request">25</property>
|
||||
<property name="visible">True</property>
|
||||
<property name="pixbuf">img/gpyfsa_refresh.svg</property>
|
||||
<property name="pixbuf">img/gpyfsa_refresh.png</property>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="padding">3</property>
|
||||
|
@ -933,7 +933,7 @@
|
|||
<widget class="GtkImage" id="i_tabSave">
|
||||
<property name="visible">True</property>
|
||||
<property name="xalign">0</property>
|
||||
<property name="pixbuf">img/gpyfsa_tab1.svg</property>
|
||||
<property name="pixbuf">img/gpyfsa_tab1.png</property>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="expand">False</property>
|
||||
|
@ -992,7 +992,7 @@
|
|||
<widget class="GtkImage" id="i_tabRestore">
|
||||
<property name="visible">True</property>
|
||||
<property name="xalign">0</property>
|
||||
<property name="pixbuf">img/gpyfsa_tab2.svg</property>
|
||||
<property name="pixbuf">img/gpyfsa_tab2.png</property>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="expand">False</property>
|
||||
|
@ -1052,7 +1052,7 @@
|
|||
<widget class="GtkImage" id="i_tabArchive">
|
||||
<property name="visible">True</property>
|
||||
<property name="xalign">0</property>
|
||||
<property name="pixbuf">img/gpyfsa_tab3.svg</property>
|
||||
<property name="pixbuf">img/gpyfsa_tab3.png</property>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="expand">False</property>
|
||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 1.7 KiB |
Binary file not shown.
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 1.8 KiB |
BIN
0.3x/res/img/gpyfsa_refresh.png
Normal file
BIN
0.3x/res/img/gpyfsa_refresh.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.7 KiB |
|
@ -3,7 +3,7 @@
|
|||
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
|
||||
# #
|
||||
# software : GPyFSA <http://gpyfsa.sourceforge.net/> #
|
||||
# version : 0.31 #
|
||||
# version : 0.32 #
|
||||
# date : 2010 #
|
||||
# licence : GPLv3.0 <http://www.gnu.org/licenses/> #
|
||||
# author : a-Sansara <http://www.a-sansara.net/> #
|
||||
|
@ -63,8 +63,8 @@ K_DEV_ACTIVATABLE = 1
|
|||
K_DEV_ACTIVE = 2
|
||||
K_DEV = 3
|
||||
L_COLSNAME = ('',_('device'),_('type'),_('label'),_('size'),_('used'),_('free'),_('%used'),_('mount point'))
|
||||
IMG_TV_DEVICE = PATH_IMG+'gpyfsa_dev.svg'
|
||||
IMG_TV_DEVICE_LOCKED = PATH_IMG+'gpyfsa_devlocked.svg'
|
||||
IMG_TV_DEVICE = PATH_IMG+'gpyfsa_dev.png'
|
||||
IMG_TV_DEVICE_LOCKED = PATH_IMG+'gpyfsa_devlocked.png'
|
||||
|
||||
K_TYPE = K_FILTER_NAME = PAGE_SAVE = 0
|
||||
K_TITLE = K_FILTER_PATTERN = PAGE_REST = 1
|
||||
|
@ -89,6 +89,3 @@ def getGladeXML() : return gtk.glade.XML(PATH_RES+APP_NAME+".glade",APP_NAME)
|
|||
def chdir(path) : return os.chdir(path)
|
||||
|
||||
def getShell() : return sh
|
||||
|
||||
|
||||
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
|
||||
# #
|
||||
# software : GPyFSA <http://gpyfsa.sourceforge.net/> #
|
||||
# version : 0.31 #
|
||||
# version : 0.32 #
|
||||
# date : 2010 #
|
||||
# licence : GPLv3.0 <http://www.gnu.org/licenses/> #
|
||||
# author : a-Sansara <http://www.a-sansara.net/> #
|
||||
|
@ -26,7 +26,7 @@
|
|||
# You should have received a copy of the GNU General Public License
|
||||
# along with GPyFSA. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
import gtk, os, os.path
|
||||
import gtk, os, os.path, pprint
|
||||
from gpyfsa_fsa import ProbeReader
|
||||
from gpyfsa_ui import getNewWidget, insertWidget
|
||||
from operator import itemgetter
|
||||
|
@ -145,11 +145,13 @@ class DevListManager():
|
|||
# ICO ACTIVATABLE ACTIVE _K_DEV_ NO READ-WRITE
|
||||
store = gtk.TreeStore(gtk.gdk.Pixbuf, 'gboolean', 'gboolean', str, str, str, str, str, str, str, str, 'gboolean')
|
||||
ldev = ProbeReader(self.conf).getListDevices()
|
||||
|
||||
for i,l in enumerate(ldev):
|
||||
hasntLockedDev = True
|
||||
self.preformatStoreData(l[self.conf.K_DISK],False,self.conf.IMG_TV_DEVICE)
|
||||
diter = store.append(None,l[self.conf.K_DISK])
|
||||
for j,dev in enumerate(l[self.conf.K_DEVICE]):
|
||||
print j
|
||||
imgn = self.conf.IMG_TV_DEVICE
|
||||
if dev[self.conf.K_DEV_RWRIT]:
|
||||
imgn = self.conf.IMG_TV_DEVICE_LOCKED
|
||||
|
@ -163,7 +165,8 @@ class DevListManager():
|
|||
except :
|
||||
pass
|
||||
self.preformatStoreData(dev,not dev[self.conf.K_DEV_RWRIT],imgn,active)
|
||||
store.append(diter,dev)
|
||||
# inspect later possible wrong length
|
||||
store.append(diter,dev[:12])
|
||||
return store
|
||||
|
||||
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
|
||||
|
@ -201,6 +204,3 @@ class DevListManager():
|
|||
self.conf = conf
|
||||
self.buildTreeDevices()
|
||||
self.bindEvents()
|
||||
|
||||
|
||||
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
|
||||
# #
|
||||
# software : GPyFSA <http://gpyfsa.sourceforge.net/> #
|
||||
# version : 0.31 #
|
||||
# version : 0.32 #
|
||||
# date : 2010 #
|
||||
# licence : GPLv3.0 <http://www.gnu.org/licenses/> #
|
||||
# author : a-Sansara <http://www.a-sansara.net/> #
|
||||
|
@ -186,5 +186,3 @@ class LogReader:
|
|||
self.textview.scroll_to_iter(self.buf.get_end_iter(),0)
|
||||
self.end = True
|
||||
|
||||
|
||||
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
|
||||
# #
|
||||
# software : GPyFSA <http://gpyfsa.sourceforge.net/> #
|
||||
# version : 0.31 #
|
||||
# version : 0.32 #
|
||||
# date : 2010 #
|
||||
# licence : GPLv3.0 <http://www.gnu.org/licenses/> #
|
||||
# author : a-Sansara <http://www.a-sansara.net/> #
|
||||
|
@ -242,5 +242,3 @@ if __name__ == '__main__':
|
|||
# msgfmt gpyfsa.po -o gpyfsa.mo
|
||||
# intltool-extract --type=gettext/glade res/*.glade
|
||||
# msgmerge -U locale/fr/LC_MESSAGES/gpyfsa.po gpyfsa.pot
|
||||
|
||||
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
|
||||
# #
|
||||
# software : GPyFSA <http://gpyfsa.sourceforge.net/> #
|
||||
# version : 0.31 #
|
||||
# version : 0.32 #
|
||||
# date : 2010 #
|
||||
# licence : GPLv3.0 <http://www.gnu.org/licenses/> #
|
||||
# author : a-Sansara <http://www.a-sansara.net/> #
|
||||
|
@ -30,6 +30,3 @@
|
|||
class SaveFS(gtk.Window):
|
||||
|
||||
pass
|
||||
|
||||
|
||||
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
|
||||
# #
|
||||
# software : GPyFSA <http://gpyfsa.sourceforge.net/> #
|
||||
# version : 0.31 #
|
||||
# version : 0.32 #
|
||||
# date : 2010 #
|
||||
# licence : GPLv3.0 <http://www.gnu.org/licenses/> #
|
||||
# author : a-Sansara <http://www.a-sansara.net/> #
|
||||
|
@ -63,5 +63,3 @@ class Shell:
|
|||
def __getGrepPipeOut(self,cmd,grepStr):
|
||||
try : return self.__pipe(cmd, [self.CMD_GREP, grepStr]).stdout.read().split("\n")
|
||||
except : return ""
|
||||
|
||||
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
|
||||
# #
|
||||
# software : GPyFSA <http://gpyfsa.sourceforge.net/> #
|
||||
# version : 0.31 #
|
||||
# version : 0.32 #
|
||||
# date : 2010 #
|
||||
# licence : GPLv3.0 <http://www.gnu.org/licenses/> #
|
||||
# author : a-Sansara <http://www.a-sansara.net/> #
|
||||
|
@ -160,5 +160,3 @@ def setTimeout(ms, bind, callback, clearCallback, data=None):
|
|||
if(type(data) != tuple): data = (data,)
|
||||
for i in range(len(data)): params += ", data["+str(i)+"]"
|
||||
return eval("gobject.timeout_add(ms, bind, callback, clearCallback "+params+")")
|
||||
|
||||
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
|
||||
|
|
Loading…
Reference in New Issue
Block a user