add clickability to results column (so you can order too), and add resizability [why not?]
This commit is contained in:
parent
f87affbf7b
commit
ae9b49b204
|
@ -73,18 +73,23 @@ class HistoryWindow:
|
||||||
renderer = gtk.CellRendererText()
|
renderer = gtk.CellRendererText()
|
||||||
col.pack_start(renderer)
|
col.pack_start(renderer)
|
||||||
col.set_attributes(renderer, text = C_CONTACT_NAME)
|
col.set_attributes(renderer, text = C_CONTACT_NAME)
|
||||||
|
col.set_sort_column_id(C_CONTACT_NAME)
|
||||||
|
col.set_resizable(True)
|
||||||
|
|
||||||
col = gtk.TreeViewColumn(_('Date'))
|
col = gtk.TreeViewColumn(_('Date'))
|
||||||
self.results_treeview.append_column(col)
|
self.results_treeview.append_column(col)
|
||||||
renderer = gtk.CellRendererText()
|
renderer = gtk.CellRendererText()
|
||||||
col.pack_start(renderer)
|
col.pack_start(renderer)
|
||||||
col.set_attributes(renderer, text = C_TIME)
|
col.set_attributes(renderer, text = C_TIME)
|
||||||
|
col.set_sort_column_id(C_TIME)
|
||||||
|
col.set_resizable(True)
|
||||||
|
|
||||||
col = gtk.TreeViewColumn(_('Message'))
|
col = gtk.TreeViewColumn(_('Message'))
|
||||||
self.results_treeview.append_column(col)
|
self.results_treeview.append_column(col)
|
||||||
renderer = gtk.CellRendererText()
|
renderer = gtk.CellRendererText()
|
||||||
col.pack_start(renderer)
|
col.pack_start(renderer)
|
||||||
col.set_attributes(renderer, text = C_MESSAGE)
|
col.set_attributes(renderer, text = C_MESSAGE)
|
||||||
|
col.set_resizable(True)
|
||||||
|
|
||||||
if account and gajim.contacts[account].has_key(jid):
|
if account and gajim.contacts[account].has_key(jid):
|
||||||
contact = gajim.get_first_contact_instance_from_jid(account, jid)
|
contact = gajim.get_first_contact_instance_from_jid(account, jid)
|
||||||
|
|
Loading…
Reference in New Issue