[francois] notifies dbus when a new gmail message arrives. Fixes #1961

This commit is contained in:
Yann Leboulanger 2006-05-15 17:27:48 +00:00
parent 1bb7edc5b5
commit 956ae9c34b
1 changed files with 3 additions and 0 deletions

View File

@ -1039,6 +1039,9 @@ class Interface:
notify.popup(_('New E-mail'), jid, account, 'gmail', notify.popup(_('New E-mail'), jid, account, 'gmail',
path_to_image = path, title = title, text = text) path_to_image = path, title = title, text = text)
if self.remote_ctrl:
self.remote_ctrl.raise_signal('NewGmail', (account, array))
def save_avatar_files(self, jid, photo_decoded, puny_nick = None): def save_avatar_files(self, jid, photo_decoded, puny_nick = None):
'''Save the decoded avatar to a separate file, and generate files for dbus notifications''' '''Save the decoded avatar to a separate file, and generate files for dbus notifications'''
puny_jid = helpers.sanitize_filename(jid) puny_jid = helpers.sanitize_filename(jid)