changeset 22e5b854ec2f in /home/hg/repos/gajim-plugins
author: Guillaume <boss(a)etenil.net>
branches: gajim_0.15
details:gajim-plugins?cmd=changeset;node=22e5b854ec2f
description: Made the ayatana plugin show the roster when clicking on its messaging menu entry.
diffstat:
ubuntu_integration/plugin.py | 6 ++++++
1 файлов изменено, 6 вставок(+), 0 удалений(-)
различия (23 строк):
diff -r 0029eed1e0fa -r 22e5b854ec2f ubuntu_integration/plugin.py
--- a/ubuntu_integration/plugin.py Fri Oct 04 23:26:28 2013 +0400
+++ b/ubuntu_integration/plugin.py Fri Oct 04 11:12:57 2013 +0100
@@ -66,6 +66,10 @@
self.available_text += _('python-indicate is missing! '
'Install python-indicate.')
+ def show_roster_window(a, b, c):
+ roster = gajim.interface.roster.window
+ roster.present()
+
@log_calls("UbuntuIntegrationPlugin")
def activate(self):
"""
@@ -87,6 +91,8 @@
if not dfile:
raise GajimPluginException("Can't locate gajim.desktop!")
self.server.set_desktop_file(dfile)
+ roster = gajim.interface.roster.window
+ self.server.connect('server-display', self.show_roster_window)
self.server.show()
gajim.events.event_added_subscribe(self.on_event_added)