From 1fcd510a981550651512209fc5b0b117679ccdd8 Mon Sep 17 00:00:00 2001 From: Benny Malengier Date: Fri, 30 Jan 2009 21:48:02 +0000 Subject: [PATCH] Allow sort of columns and search as you type in plugin overview window svn: r11767 --- src/PluginUtils/_PluginWindows.py | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/PluginUtils/_PluginWindows.py b/src/PluginUtils/_PluginWindows.py index fc23577f6..5378a5542 100644 --- a/src/PluginUtils/_PluginWindows.py +++ b/src/PluginUtils/_PluginWindows.py @@ -82,12 +82,13 @@ class PluginStatus(ManagedWindow.ManagedWindow): self.list.append_column( gtk.TreeViewColumn(_('Status'), gtk.CellRendererText(), markup=0)) - self.list.append_column( - gtk.TreeViewColumn(_('File'), gtk.CellRendererText(), - text=1)) - self.list.append_column( - gtk.TreeViewColumn(_('Message'), gtk.CellRendererText(), - text=2)) + col1 = gtk.TreeViewColumn(_('File'), gtk.CellRendererText(), text=1) + col1.set_sort_column_id(1) + self.list.append_column(col1) + col2 = gtk.TreeViewColumn(_('Message'), gtk.CellRendererText(), text=2) + col2.set_sort_column_id(2) + self.list.append_column(col2) + self.list.set_search_column(1) scrolled_window.add(self.list) self.window.vbox.add(scrolled_window)