fix TB: button_text is now always set

This commit is contained in:
Yann Leboulanger 2006-03-30 14:08:57 +00:00
parent a2b7c819a1
commit ef6ead5d84
1 changed files with 2 additions and 2 deletions

View File

@ -130,6 +130,7 @@ 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()