[jim++] fix muc invitation old style popup (perhpas new too) says event_type as text (#1797)
This commit is contained in:
parent
d86797d034
commit
397d255c42
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue