add clickability to results column (so you can order too), and add resizability [why not?]

This commit is contained in:
Nikos Kouremenos 2005-11-30 23:17:25 +00:00
parent f87affbf7b
commit ae9b49b204
1 changed files with 5 additions and 0 deletions

View File

@ -73,18 +73,23 @@ class HistoryWindow:
renderer = gtk.CellRendererText()
col.pack_start(renderer)
col.set_attributes(renderer, text = C_CONTACT_NAME)
col.set_sort_column_id(C_CONTACT_NAME)
col.set_resizable(True)
col = gtk.TreeViewColumn(_('Date'))
self.results_treeview.append_column(col)
renderer = gtk.CellRendererText()
col.pack_start(renderer)
col.set_attributes(renderer, text = C_TIME)
col.set_sort_column_id(C_TIME)
col.set_resizable(True)
col = gtk.TreeViewColumn(_('Message'))
self.results_treeview.append_column(col)
renderer = gtk.CellRendererText()
col.pack_start(renderer)
col.set_attributes(renderer, text = C_MESSAGE)
col.set_resizable(True)
if account and gajim.contacts[account].has_key(jid):
contact = gajim.get_first_contact_instance_from_jid(account, jid)