changeset 7208aa30689f in /home/hg/repos/gajim
author: Yann Leboulanger asterix@lagaule.org branches: gajim_0.16 details:http://hg.gajim.org/gajim?cmd=changeset;node=7208aa30689f description: don't show useless buttons in notifications. Fixes #7838
diffstat:
src/gui_interface.py | 4 ++-- src/notify.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-)
diffs (42 lines):
diff -r 50aa83946a3e -r 7208aa30689f src/gui_interface.py --- a/src/gui_interface.py Sat Jan 03 14:15:18 2015 +0100 +++ b/src/gui_interface.py Sat Jan 03 15:24:58 2015 +0100 @@ -201,7 +201,7 @@ path = gtkgui_helpers.get_icon_path('gajim-connection_lost', 48) account = obj.conn.name notify.popup(_('Connection Failed'), account, account, - 'connection_failed', path, obj.title, obj.msg) + '', path, obj.title, obj.msg)
def unblock_signed_in_notifications(self, account): gajim.block_signed_in_notifications[account] = False @@ -664,7 +664,7 @@ else: path = gtkgui_helpers.get_icon_path('gtk-dialog-warning', 48) account = obj.conn.name - notify.popup('warning', account, account, 'warning', path, + notify.popup('warning', account, account, '', path, _('OpenPGP Passphrase Incorrect'), _('You are currently connected without your OpenPGP key.')) self.forget_gpg_passphrase(obj.keyID) diff -r 50aa83946a3e -r 7208aa30689f src/notify.py --- a/src/notify.py Sat Jan 03 14:15:18 2015 +0100 +++ b/src/notify.py Sat Jan 03 15:24:58 2015 +0100 @@ -332,7 +332,7 @@ version = self.version if version[:2] == [0, 2]: actions = {} - if 'actions' in self.capabilities: + if 'actions' in self.capabilities and self.msg_type: actions = {'default': 0} try: self.notif.Notify( @@ -381,7 +381,7 @@ self.path_to_image = os.path.abspath( gtkgui_helpers.get_icon_path('gajim', 48)) actions = () - if 'actions' in self.capabilities: + if 'actions' in self.capabilities and self.msg_type: actions = (dbus.String('default'), dbus.String( self.event_type)) try: