Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
norstbox
gajim
Commits
397d255c
Commit
397d255c
authored
Apr 05, 2006
by
nkour
Browse files
[jim++] fix muc invitation old style popup (perhpas new too) says event_type as text (#1797)
parent
d86797d0
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/dialogs.py
View file @
397d255c
...
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment