Commit 91bb8c33 authored by Philipp Hörist's avatar Philipp Hörist
Browse files

ConversationTextview: Add nickname tag

This makes it easier for plugins to detect the nickname
parent 209cd3c8
......@@ -272,6 +272,9 @@ def __init__(self, account, used_in_history_window=False):
textview_icon = buffer_.create_tag('textview-icon')
textview_icon.set_property('rise', Pango.units_from_double(-2.45))
# To help plugins easily identify the nickname
tag = buffer_.create_tag('time_sometimes')
tag.set_property('foreground', 'darkgrey')
......@@ -1227,6 +1230,7 @@ def print_name(self, name, kind, other_tags_for_name, direction_mark='',
if other_tags_for_name:
name_tags = other_tags_for_name[:] # create a new list
for tag in name_tags:
if tag.startswith('muc_nickname_color_'):
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment