diff --git a/src/chat_control.py b/src/chat_control.py
index 40932d23f..1a133b29e 100644
--- a/src/chat_control.py
+++ b/src/chat_control.py
@@ -884,11 +884,11 @@ class ChatControl(ChatControlBase):
# in case there is no font specified we use x-large font size
if font_size == 0:
- font_size = 'x-large'
- font_attrs = '%s size="%s"' % (font_attrs, font_size)
+ font_attrs = '%s size="x-large"' % font_attrs
st = gajim.config.get('chat_state_notifications')
cs = contact.chatstate
+ font.set_weight(pango.WEIGHT_NORMAL)
if cs and st in ('composing_only', 'all'):
if contact.show == 'offline':
chatstate = ''
@@ -902,16 +902,19 @@ class ChatControl(ChatControlBase):
chatstate = ''
elif chatstate is None:
chatstate = helpers.get_uf_chatstate(cs)
+
label_text = \
- '%s%s %s' % \
- (font_attrs, name, acct_info, chatstate)
+ '%s%s %s' % \
+ (font_attrs, name, font.to_string(), acct_info, chatstate)
else:
# weight="heavy" size="x-large"
- label_text = '%s%s' % \
- (font_attrs, name, acct_info)
+ label_text = \
+ '%s%s' % \
+ (font_attrs, name, font.to_string(), acct_info)
if status:
- label_text += '\n%s' % status
+ label_text += '\n%s' %\
+ (font.to_string(), status)
# setup the label that holds name and jid
banner_name_label.set_markup(label_text)
diff --git a/src/disco.py b/src/disco.py
index 534fb0451..778d08281 100644
--- a/src/disco.py
+++ b/src/disco.py
@@ -527,7 +527,7 @@ _('Without a connection, you can not browse available services')).get_response()
markup = '%s' % (font_attrs, text)
if text_after:
font.set_weight(pango.WEIGHT_NORMAL)
- markup = '%s\n%s' % \
+ markup = '%s\n%s' % \
(markup, font.to_string(), text_after)
self.banner.set_markup(markup)