From 9868f23c16443bfada2647bd1007fac0b565b53a Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Mon, 18 Jul 2005 13:42:15 +0000 Subject: [PATCH] we now scroll to end we we click on systray icon nad have a message --- src/systray.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/systray.py b/src/systray.py index d06cb6afc..dfec9e905 100644 --- a/src/systray.py +++ b/src/systray.py @@ -245,17 +245,21 @@ class Systray: account = self.jids[0][0] jid = self.jids[0][1] acc = self.plugin.windows[account] + w = None if acc['gc'].has_key(jid): - acc['gc'][jid].set_active_tab(jid) - acc['gc'][jid].window.present() + w = acc['gc'][jid] elif acc['chats'].has_key(jid): - acc['chats'][jid].set_active_tab(jid) - acc['chats'][jid].window.present() + w = acc['chats'][jid] else: self.plugin.roster.new_chat( self.plugin.roster.contacts[account][jid][0], account) acc['chats'][jid].set_active_tab(jid) acc['chats'][jid].window.present() + if w: + w.set_active_tab(jid) + w.window.present() + tv = w.xmls[jid].get_widget('conversation_textview') + w.scroll_to_end(tv) if event.button == 2: # middle click if win.is_active(): win.hide()