changeset e3d6d38640c2 in /home/hg/repos/gajim-plugins
author: Guillaume <boss(a)etenil.net>
branches:
details:gajim-plugins?cmd=changeset;node=e3d6d38640c2
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 f3e4968feec8 -r e3d6d38640c2 ubuntu_integration/plugin.py
--- a/ubuntu_integration/plugin.py Fri Oct 04 22:52:51 2013 +0400
+++ b/ubuntu_integration/plugin.py Fri Oct 04 11:12:57 2013 +0100
@@ -60,6 +60,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):
"""
@@ -81,6 +85,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)