commit back sort (gtk lingo for clickabity on header to sort)
This commit is contained in:
parent
65c8646e2e
commit
a2e478589f
|
@ -88,6 +88,7 @@ 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) # user can click this header and sort
|
||||||
col.set_resizable(True)
|
col.set_resizable(True)
|
||||||
|
|
||||||
col = gtk.TreeViewColumn(_('Date'))
|
col = gtk.TreeViewColumn(_('Date'))
|
||||||
|
@ -95,6 +96,7 @@ class HistoryWindow:
|
||||||
renderer = gtk.CellRendererText()
|
renderer = gtk.CellRendererText()
|
||||||
col.pack_start(renderer)
|
col.pack_start(renderer)
|
||||||
col.set_attributes(renderer, text = C_UNIXTIME)
|
col.set_attributes(renderer, text = C_UNIXTIME)
|
||||||
|
col.set_sort_column_id(C_UNIXTIME) # user can click this header and sort
|
||||||
col.set_resizable(True)
|
col.set_resizable(True)
|
||||||
|
|
||||||
col = gtk.TreeViewColumn(_('Message'))
|
col = gtk.TreeViewColumn(_('Message'))
|
||||||
|
|
Loading…
Reference in New Issue