[jim++] fix muc invitation old style popup (perhpas new too) says event_type as text (#1797)

This commit is contained in:
Nikos Kouremenos 2006-04-05 16:32:22 +00:00
parent d86797d034
commit 397d255c42
1 changed files with 9 additions and 0 deletions

View File

@ -1066,6 +1066,15 @@ class PopupNotificationWindow:
eventbox.modify_bg(gtk.STATE_NORMAL, dodgerblue)
event_description_label.set_markup(
'<span foreground="black">%s</span>' % text)
elif event_type == _('Groupchat Invitation'):
bg_color = gtk.gdk.color_parse('tan1')
close_button.modify_bg(gtk.STATE_NORMAL, bg_color)
eventbox.modify_bg(gtk.STATE_NORMAL, bg_color)
event_description_label.set_markup(
'<span foreground="black">%s</span>' % text)
else: # Unknown event ! Shouldn't happen but deal with it
event_description_label.set_markup(
'<span foreground="black">%s</span>' % text)
# set the image
image.set_from_file(path_to_image)