Philipp Hörist pushed to branch master at gajim / gajim
Commits:
-
47f1f419
by Philipp Hörist at 2017-12-03T15:34:33+01:00
2 changed files:
Changes:
| ... | ... | @@ -913,7 +913,7 @@ class ChatControlBase(MessageControl, ChatCommandProcessor, CommandTools): |
| 913 | 913 |
self.received_history_pos = pos
|
| 914 | 914 |
|
| 915 | 915 |
def print_conversation_line(self, text, kind, name, tim,
|
| 916 |
- other_tags_for_name=[], other_tags_for_time=[], other_tags_for_text=[],
|
|
| 916 |
+ other_tags_for_name=None, other_tags_for_time=None, other_tags_for_text=None,
|
|
| 917 | 917 |
count_as_new=True, subject=None, old_kind=None, xhtml=None, simple=False,
|
| 918 | 918 |
xep0184_id=None, graphics=True, displaymarking=None, msg_log_id=None,
|
| 919 | 919 |
msg_stanza_id=None, correct_id=None, additional_data=None,
|
| ... | ... | @@ -1353,11 +1353,13 @@ class ConversationTextview(GObject.GObject): |
| 1353 | 1353 |
buffer_.insert(end_iter, subject)
|
| 1354 | 1354 |
self.print_empty_line(end_iter)
|
| 1355 | 1355 |
|
| 1356 |
- def print_real_text(self, text, text_tags=[], name=None, xhtml=None,
|
|
| 1356 |
+ def print_real_text(self, text, text_tags=None, name=None, xhtml=None,
|
|
| 1357 | 1357 |
graphics=True, mark=None, additional_data=None):
|
| 1358 | 1358 |
"""
|
| 1359 | 1359 |
Add normal and special text. call this to add text
|
| 1360 | 1360 |
"""
|
| 1361 |
+ if text_tags is None:
|
|
| 1362 |
+ text_tags = []
|
|
| 1361 | 1363 |
if additional_data is None:
|
| 1362 | 1364 |
additional_data = {}
|
| 1363 | 1365 |
buffer_ = self.tv.get_buffer()
|