Minor clean up in the files manager.
This commit is contained in:
parent
76bf286a52
commit
9310c7dce5
13
src/files.py
13
src/files.py
|
@ -59,12 +59,13 @@ class FilesBaseManager(object):
|
||||||
self.file_view = file_view
|
self.file_view = file_view
|
||||||
self.file_selected = []
|
self.file_selected = []
|
||||||
|
|
||||||
self.toggle_column = dgtk.add_toggle_column(self.file_view,
|
dgtk.add_toggle_column(self.file_view, _("Priority"), 0,
|
||||||
_("Priority"), 0,
|
toggled_signal=self.file_toggled)
|
||||||
toggled_signal=self.file_toggled)
|
filename_column = dgtk.add_text_column(self.file_view, _("Filename"),
|
||||||
self.filename_column = dgtk.add_text_column(self.file_view, _("Filename"), 1)
|
1)
|
||||||
self.filename_column.set_expand(True)
|
filename_column.set_expand(True)
|
||||||
self.size_column = dgtk.add_func_column(self.file_view, _("Size"), dgtk.cell_data_size, 2)
|
dgtk.add_func_column(self.file_view, _("Size"), dgtk.cell_data_size,
|
||||||
|
2)
|
||||||
|
|
||||||
self.file_view.set_model(self.file_store_sorted)
|
self.file_view.set_model(self.file_store_sorted)
|
||||||
self.file_view.get_selection().set_mode(gtk.SELECTION_MULTIPLE)
|
self.file_view.get_selection().set_mode(gtk.SELECTION_MULTIPLE)
|
||||||
|
|
Loading…
Reference in New Issue