touchup
This commit is contained in:
parent
2d952aaa48
commit
d8d6dcd998
|
@ -37,18 +37,15 @@ class FilesTabManager(FilesBaseManager):
|
||||||
super(FilesTabManager, self).priority_clicked(widget)
|
super(FilesTabManager, self).priority_clicked(widget)
|
||||||
|
|
||||||
def open_file(self, widget):
|
def open_file(self, widget):
|
||||||
self.open_image = gtk.Image()
|
|
||||||
self.open_image.set_from_stock(gtk.STOCK_OPEN)
|
|
||||||
self.open_speed_menuitem = gtk.ImageMenuItem(_("OPen File"))
|
|
||||||
self.open_speed_menuitem.set_image(self.down_image)
|
|
||||||
|
|
||||||
selected_paths = self.file_view.get_selection().get_selected_rows()[1]
|
selected_paths = self.file_view.get_selection().get_selected_rows()[1]
|
||||||
import os
|
import os
|
||||||
|
try:
|
||||||
for path in selected_paths:
|
for path in selected_paths:
|
||||||
child_path = self.file_store_sorted.\
|
child_path = self.file_store_sorted.convert_path_to_child_path(path)
|
||||||
convert_path_to_child_path(path)
|
|
||||||
os.system("xdg-open %s/%s" %(self.manager.unique_IDs[self.file_unique_id].save_dir, \
|
os.system("xdg-open %s/%s" %(self.manager.unique_IDs[self.file_unique_id].save_dir, \
|
||||||
self.file_store.get_value(self.file_store.get_iter(child_path), 0)))
|
self.file_store.get_value(self.file_store.get_iter(child_path), 0)))
|
||||||
|
except KeyError:
|
||||||
|
pass
|
||||||
|
|
||||||
# From core to UI
|
# From core to UI
|
||||||
def prepare_file_store(self):
|
def prepare_file_store(self):
|
||||||
|
|
Loading…
Reference in New Issue