From 51905d32b2456a4d151f394ec4c8405f1f9af7e8 Mon Sep 17 00:00:00 2001 From: lovetox Date: Mon, 3 Jan 2022 22:09:10 +0100 Subject: [PATCH] [birthday_reminder] Adapt to Gajim event changes --- birthday_reminder/plugin.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/birthday_reminder/plugin.py b/birthday_reminder/plugin.py index dac9c06..72e355e 100644 --- a/birthday_reminder/plugin.py +++ b/birthday_reminder/plugin.py @@ -22,7 +22,7 @@ from gi.repository import GLib from gajim.common import configpaths from gajim.common import app from gajim.common import ged -from gajim.common.nec import NetworkEvent +from gajim.common.events import Notification from gajim.plugins import GajimPlugin from gajim.plugins.plugins_i18n import _ @@ -123,9 +123,8 @@ class BirthDayPlugin(GajimPlugin): else: log.info('Issue notification for %s', jid) name = GLib.markup_escape_text(contact.name) - app.nec.push_incoming_event( - NetworkEvent('notification', - account=account, + app.ged.raise_event( + Notification(account=account, jid=jid, notif_type='reminder', icon_name='trophy-gold',