From 63cc644195c2b83420d4b47190b91ab27b796136 Mon Sep 17 00:00:00 2001 From: Andrew Resch Date: Tue, 26 Jun 2007 07:44:20 +0000 Subject: [PATCH] Make torrent view columns reorderable. --- src/dgtk.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/dgtk.py b/src/dgtk.py index c09df2d54..a3a638bcf 100644 --- a/src/dgtk.py +++ b/src/dgtk.py @@ -68,6 +68,7 @@ def add_func_column(view, header, func, data, sortid=None): column.set_resizable(True) column.set_expand(False) column.set_min_width(10) + column.set_reorderable(True) view.append_column(column) return column @@ -80,6 +81,7 @@ def add_text_column(view, header, cid): column.set_resizable(True) column.set_expand(False) column.set_min_width(10) + column.set_reorderable(True) view.append_column(column) return column @@ -91,6 +93,7 @@ def add_progress_column(view, header, pid, mid): column.set_resizable(True) column.set_expand(False) column.set_min_width(10) + column.set_reorderable(True) view.append_column(column) return column @@ -102,6 +105,7 @@ def add_toggle_column(view, header, cid, toggled_signal=None): column.set_resizable(True) column.set_expand(False) column.set_min_width(10) + column.set_reorderable(True) view.append_column(column) if toggled_signal is not None: render.connect("toggled", toggled_signal) @@ -113,6 +117,7 @@ def add_texticon_column(view, header, icon_col, text_col): column.set_resizable(True) column.set_expand(False) column.set_min_width(10) + column.set_reorderable(True) render = gtk.CellRendererPixbuf() column.pack_start(render, expand=False) column.add_attribute(render, 'pixbuf', icon_col)