changeset 75883cda0981 in /home/hg/repos/gajim
author: tmolitor thilo@eightysoft.de branches: details:http://hg.gajim.org/gajim?cmd=changeset;node=75883cda0981 description: Corrected usage of GObject get_data and set_data methods (see https://bugzilla.gnome.org/show_bug.cgi?id=641944)
diffstat:
src/notify.py | 14 +++++++------- 1 files changed, 7 insertions(+), 7 deletions(-)
diffs (31 lines):
diff -r a9da25032fe0 -r 75883cda0981 src/notify.py --- a/src/notify.py Thu Apr 07 03:40:34 2016 +0200 +++ b/src/notify.py Fri Apr 08 02:17:54 2016 +0200 @@ -120,10 +120,10 @@ notification.set_timeout(timeout*1000)
notification.set_category(event_type) - notification.set_data('event_type', event_type) - notification.set_data('jid', jid) - notification.set_data('account', account) - notification.set_data('msg_type', msg_type) + notification._data.event_type = event_type + notification._data.jid = jid + notification._data.account = account + notification._data.msg_type = msg_type notification.set_property('icon-name', path_to_image) if 'actions' in Notify.get_server_caps(): notification.add_action('default', 'Default Action', @@ -142,9 +142,9 @@ gajim.interface.roster.popup_notification_windows.append(instance)
def on_pynotify_notification_clicked(notification, action): - jid = notification.get_data('jid') - account = notification.get_data('account') - msg_type = notification.get_data('msg_type') + jid = notification._data.jid + account = notification._data.account + msg_type = notification._data.msg_type
notification.close() gajim.interface.handle_event(account, jid, msg_type)