ability to sort MUC by what we want in muc browser. fixes #2753
This commit is contained in:
parent
6c328e2a33
commit
ec31beb74a
|
@ -1567,6 +1567,7 @@ class MucBrowser(AgentBrowser):
|
||||||
renderer = gtk.CellRendererText()
|
renderer = gtk.CellRendererText()
|
||||||
col.pack_start(renderer)
|
col.pack_start(renderer)
|
||||||
col.set_attributes(renderer, text = 2)
|
col.set_attributes(renderer, text = 2)
|
||||||
|
col.set_sort_column_id(2)
|
||||||
self.window.services_treeview.insert_column(col, -1)
|
self.window.services_treeview.insert_column(col, -1)
|
||||||
col.set_resizable(True)
|
col.set_resizable(True)
|
||||||
# Users column
|
# Users column
|
||||||
|
@ -1574,6 +1575,7 @@ class MucBrowser(AgentBrowser):
|
||||||
renderer = gtk.CellRendererText()
|
renderer = gtk.CellRendererText()
|
||||||
col.pack_start(renderer)
|
col.pack_start(renderer)
|
||||||
col.set_attributes(renderer, text = 3)
|
col.set_attributes(renderer, text = 3)
|
||||||
|
col.set_sort_column_id(3)
|
||||||
self.window.services_treeview.insert_column(col, -1)
|
self.window.services_treeview.insert_column(col, -1)
|
||||||
col.set_resizable(True)
|
col.set_resizable(True)
|
||||||
# Description column
|
# Description column
|
||||||
|
@ -1581,6 +1583,7 @@ class MucBrowser(AgentBrowser):
|
||||||
renderer = gtk.CellRendererText()
|
renderer = gtk.CellRendererText()
|
||||||
col.pack_start(renderer)
|
col.pack_start(renderer)
|
||||||
col.set_attributes(renderer, text = 4)
|
col.set_attributes(renderer, text = 4)
|
||||||
|
col.set_sort_column_id(4)
|
||||||
self.window.services_treeview.insert_column(col, -1)
|
self.window.services_treeview.insert_column(col, -1)
|
||||||
col.set_resizable(True)
|
col.set_resizable(True)
|
||||||
# Id column
|
# Id column
|
||||||
|
@ -1588,9 +1591,11 @@ class MucBrowser(AgentBrowser):
|
||||||
renderer = gtk.CellRendererText()
|
renderer = gtk.CellRendererText()
|
||||||
col.pack_start(renderer)
|
col.pack_start(renderer)
|
||||||
col.set_attributes(renderer, text = 0)
|
col.set_attributes(renderer, text = 0)
|
||||||
|
col.set_sort_column_id(0)
|
||||||
self.window.services_treeview.insert_column(col, -1)
|
self.window.services_treeview.insert_column(col, -1)
|
||||||
col.set_resizable(True)
|
col.set_resizable(True)
|
||||||
self.window.services_treeview.set_headers_visible(True)
|
self.window.services_treeview.set_headers_visible(True)
|
||||||
|
self.window.services_treeview.set_headers_clickable(True)
|
||||||
# Source id for idle callback used to start disco#info queries.
|
# Source id for idle callback used to start disco#info queries.
|
||||||
self._fetch_source = None
|
self._fetch_source = None
|
||||||
# Query failure counter
|
# Query failure counter
|
||||||
|
|
Loading…
Reference in New Issue