From 397d255c42e011cf51b299a8432fb4df210b80ed Mon Sep 17 00:00:00 2001 From: Nikos Kouremenos Date: Wed, 5 Apr 2006 16:32:22 +0000 Subject: [PATCH] [jim++] fix muc invitation old style popup (perhpas new too) says event_type as text (#1797) --- src/dialogs.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/dialogs.py b/src/dialogs.py index 285469018..46858097d 100644 --- a/src/dialogs.py +++ b/src/dialogs.py @@ -1066,6 +1066,15 @@ class PopupNotificationWindow: eventbox.modify_bg(gtk.STATE_NORMAL, dodgerblue) event_description_label.set_markup( '%s' % 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( + '%s' % text) + else: # Unknown event ! Shouldn't happen but deal with it + event_description_label.set_markup( + '%s' % text) # set the image image.set_from_file(path_to_image)