[Reportbug-commits] [SCM] Reportbug - reports bugs in the Debian distribution branch, master, updated. 4.0-22-ge53e415

Luca Bruno lethalman88 at gmail.com
Wed Mar 25 22:56:47 UTC 2009


The following commit has been merged in the master branch:
commit 85c5c6186b3bd80f2f92123875ac7135005a6450
Author: Luca Bruno <lethalman88 at gmail.com>
Date:   Tue Mar 24 22:48:27 2009 +0100

    Make BTS query columns reorderable

diff --git a/reportbug/ui/gtk2_ui.py b/reportbug/ui/gtk2_ui.py
index 3a824f9..778c580 100644
--- a/reportbug/ui/gtk2_ui.py
+++ b/reportbug/ui/gtk2_ui.py
@@ -843,7 +843,9 @@ class HandleBTSQueryPage (TreePage):
         self.columns = ['ID', 'Tag', 'Package', 'Description', 'Reporter', 'Date', 'Severity', 'Version',
                         'Filed date', 'Modified date']
         for col in zip (self.columns, range (len (self.columns))):
-            self.view.append_column (gtk.TreeViewColumn (col[0], gtk.CellRendererText (), text=col[1]))
+            column = gtk.TreeViewColumn (col[0], gtk.CellRendererText (), text=col[1])
+            column.set_reorderable (True)
+            self.view.append_column (column)
         vbox.pack_start (scrolled)
 
         button = gtk.Button ("Retrieve and submit bug information")

-- 
Reportbug - reports bugs in the Debian distribution



More information about the Reportbug-commits mailing list