From ef6ead5d842d65a259508290b4b03e4a106fc9a8 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Thu, 30 Mar 2006 14:08:57 +0000 Subject: [PATCH] fix TB: button_text is now always set --- src/notify.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/notify.py b/src/notify.py index 1534734da..7370eaa19 100644 --- a/src/notify.py +++ b/src/notify.py @@ -129,7 +129,8 @@ class DesktopNotification: if not text: self.text = gajim.get_name_from_jid(account, jid) # default value of text - + + button_text = event_type if event_type == _('Contact Signed In'): ntype = 'presence.online' button_text = _('Start Chat with Contact') @@ -160,7 +161,6 @@ class DesktopNotification: os.path.join(gajim.DATA_DIR, 'pixmaps', 'events', 'chat_msg_recv.png')) # img to display ntype = 'im' # Notification Type - button_text = event_type self.response_description = button_text self.notif = dbus_support.get_notifications_interface()