diff options
| author | Antoine Tenart | 2018-07-26 09:01:01 +0200 |
|---|---|---|
| committer | Antoine Tenart | 2018-07-26 09:01:01 +0200 |
| commit | 1bc4c7aac92e66d6ee4fef9b2ef887dd18ae9679 (patch) | |
| tree | 37d9920ed4e306835b1ac5a9f8575507e03dccf0 | |
| parent | 03245a87318cffe10059f1c88e26bb3807ab154e (diff) | |
Switch columns in the Nautilus extension
Signed-off-by: Antoine Tenart <antoine.tenart@ack.tf>
| -rw-r--r-- | nautilus/.nautilus_mat2.py.swp | bin | 20480 -> 20480 bytes | |||
| -rw-r--r-- | nautilus/nautilus_mat2.py | 4 |
2 files changed, 2 insertions, 2 deletions
diff --git a/nautilus/.nautilus_mat2.py.swp b/nautilus/.nautilus_mat2.py.swp index 514d0e2..6364dd1 100644 --- a/nautilus/.nautilus_mat2.py.swp +++ b/nautilus/.nautilus_mat2.py.swp | |||
| Binary files differ | |||
diff --git a/nautilus/nautilus_mat2.py b/nautilus/nautilus_mat2.py index 12c1f80..9b3c8df 100644 --- a/nautilus/nautilus_mat2.py +++ b/nautilus/nautilus_mat2.py | |||
| @@ -124,7 +124,7 @@ class ColumnExtension(GObject.GObject, Nautilus.MenuProvider, Nautilus.LocationW | |||
| 124 | column_pixbuf = Gtk.TreeViewColumn("Image", renderer_pixbuf, pixbuf=0) | 124 | column_pixbuf = Gtk.TreeViewColumn("Image", renderer_pixbuf, pixbuf=0) |
| 125 | treeview.append_column(column_pixbuf) | 125 | treeview.append_column(column_pixbuf) |
| 126 | 126 | ||
| 127 | for idx, name in enumerate(['Reason', 'File']): | 127 | for idx, name in enumerate(['File', 'Reason']): |
| 128 | renderer_text = Gtk.CellRendererText() | 128 | renderer_text = Gtk.CellRendererText() |
| 129 | column_text = Gtk.TreeViewColumn(name, renderer_text, text=idx+1) | 129 | column_text = Gtk.TreeViewColumn(name, renderer_text, text=idx+1) |
| 130 | treeview.append_column(column_text) | 130 | treeview.append_column(column_text) |
| @@ -143,7 +143,7 @@ class ColumnExtension(GObject.GObject, Nautilus.MenuProvider, Nautilus.LocationW | |||
| 143 | except GLib.GError: | 143 | except GLib.GError: |
| 144 | pass | 144 | pass |
| 145 | 145 | ||
| 146 | liststore.append([img, reason, fname]) | 146 | liststore.append([img, fname, reason]) |
| 147 | 147 | ||
| 148 | treeview.show_all() | 148 | treeview.show_all() |
| 149 | return treeview | 149 | return treeview |
