From 0a7669afeffea237902b5ddfb58d2be2538489fb Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Tue, 13 Nov 2007 19:58:22 +0000 Subject: [PATCH] make columns in ChoosePGPKey dialogs sortable. fixes #3520 --- src/dialogs.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/dialogs.py b/src/dialogs.py index e61aeb761..e6ee57073 100644 --- a/src/dialogs.py +++ b/src/dialogs.py @@ -327,11 +327,13 @@ class ChooseGPGKeyDialog: self.keys_treeview.set_model(model) #columns renderer = gtk.CellRendererText() - self.keys_treeview.insert_column_with_attributes(-1, _('KeyID'), + col = self.keys_treeview.insert_column_with_attributes(-1, _('KeyID'), renderer, text = 0) + col.set_sort_column_id(0) renderer = gtk.CellRendererText() - self.keys_treeview.insert_column_with_attributes(-1, _('Contact name'), - renderer, text = 1) + col = self.keys_treeview.insert_column_with_attributes(-1, + _('Contact name'), renderer, text = 1) + col.set_sort_column_id(1) self.keys_treeview.set_search_column(1) self.fill_tree(secret_keys, selected) self.window.show_all()