1
0
mirror of synced 2024-11-22 09:14:23 +01:00

Switch columns in the Nautilus extension

Signed-off-by: Antoine Tenart <antoine.tenart@ack.tf>
This commit is contained in:
Antoine Tenart 2018-07-26 09:01:01 +02:00
parent 03245a8731
commit 1bc4c7aac9
2 changed files with 2 additions and 2 deletions

Binary file not shown.

View File

@ -124,7 +124,7 @@ class ColumnExtension(GObject.GObject, Nautilus.MenuProvider, Nautilus.LocationW
column_pixbuf = Gtk.TreeViewColumn("Image", renderer_pixbuf, pixbuf=0) column_pixbuf = Gtk.TreeViewColumn("Image", renderer_pixbuf, pixbuf=0)
treeview.append_column(column_pixbuf) treeview.append_column(column_pixbuf)
for idx, name in enumerate(['Reason', 'File']): for idx, name in enumerate(['File', 'Reason']):
renderer_text = Gtk.CellRendererText() renderer_text = Gtk.CellRendererText()
column_text = Gtk.TreeViewColumn(name, renderer_text, text=idx+1) column_text = Gtk.TreeViewColumn(name, renderer_text, text=idx+1)
treeview.append_column(column_text) treeview.append_column(column_text)
@ -143,7 +143,7 @@ class ColumnExtension(GObject.GObject, Nautilus.MenuProvider, Nautilus.LocationW
except GLib.GError: except GLib.GError:
pass pass
liststore.append([img, reason, fname]) liststore.append([img, fname, reason])
treeview.show_all() treeview.show_all()
return treeview return treeview