summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorWill Thompson <will.thompson@collabora.co.uk>2011-11-16 09:29:12 +0000
committerWill Thompson <will.thompson@collabora.co.uk>2011-11-18 10:44:42 +0000
commitbd8c210005270e42b09feb08abf521bd64a1237d (patch)
treec37ff336d525c03e11200ae98d3200c09b184bdc /plugins
parentace82cb0e39516c6df7b055b5a2219c45578c746 (diff)
downloadtelepathy-gabble-bd8c210005270e42b09feb08abf521bd64a1237d.tar.gz
console UI: pack IQ page into a notebook.
Diffstat (limited to 'plugins')
-rwxr-xr-xplugins/telepathy-gabble-xmpp-console9
1 files changed, 8 insertions, 1 deletions
diff --git a/plugins/telepathy-gabble-xmpp-console b/plugins/telepathy-gabble-xmpp-console
index 961f1a5e4..f39380e24 100755
--- a/plugins/telepathy-gabble-xmpp-console
+++ b/plugins/telepathy-gabble-xmpp-console
@@ -167,6 +167,8 @@ class IQPage(Gtk.Grid):
class Window(Gtk.Window):
+ IQ_PAGE = 0
+
def __init__(self, bus, connection_bus_name):
Gtk.Window.__init__(self)
@@ -191,8 +193,13 @@ plugin installed.""" % locals()
connection_bus_name, sidecar_path, CONSOLE_IFACE, None)
# Build up the UI
+ self.nb = Gtk.Notebook()
+ self.add(self.nb)
+
self.grid = IQPage(self.console_proxy)
- self.add(self.grid)
+ self.nb.insert_page(self.grid,
+ Gtk.Label.new_with_mnemonic("_IQ console"),
+ self.IQ_PAGE)
if __name__ == '__main__':
bus = Gio.bus_get_sync(Gio.BusType.SESSION, None)