do not tb on kind gc_msg
This commit is contained in:
parent
f36a6af404
commit
5957e968d7
|
@ -273,6 +273,7 @@ class HistoryManager:
|
||||||
except ValueError:
|
except ValueError:
|
||||||
pass
|
pass
|
||||||
else:
|
else:
|
||||||
|
set_color = True
|
||||||
if kind in (constants.KIND_SINGLE_MSG_RECV,
|
if kind in (constants.KIND_SINGLE_MSG_RECV,
|
||||||
constants.KIND_CHAT_MSG_RECV): # it is the other side
|
constants.KIND_CHAT_MSG_RECV): # it is the other side
|
||||||
color = gajim.config.get('inmsgcolor') # so incoming color
|
color = gajim.config.get('inmsgcolor') # so incoming color
|
||||||
|
@ -282,9 +283,14 @@ class HistoryManager:
|
||||||
elif kind in (constants.KIND_STATUS,
|
elif kind in (constants.KIND_STATUS,
|
||||||
constants.KIND_GCSTATUS): # is is statuses
|
constants.KIND_GCSTATUS): # is is statuses
|
||||||
color = gajim.config.get('statusmsgcolor') # so status color
|
color = gajim.config.get('statusmsgcolor') # so status color
|
||||||
|
else: # GC_MSG (message in room)
|
||||||
message = '<span foreground="%s">%s</span>' % (color,
|
set_color = False
|
||||||
gtkgui_helpers.escape_for_pango_markup(row[4]))
|
|
||||||
|
if set_color:
|
||||||
|
message = '<span foreground="%s">%s</span>' % (color,
|
||||||
|
gtkgui_helpers.escape_for_pango_markup(row[4]))
|
||||||
|
else:
|
||||||
|
message = row[4]
|
||||||
self.logs_liststore.append((row[0], row[1], time_, message, row[5]))
|
self.logs_liststore.append((row[0], row[1], time_, message, row[5]))
|
||||||
|
|
||||||
def _fill_search_results_listview(self, text):
|
def _fill_search_results_listview(self, text):
|
||||||
|
|
Loading…
Reference in New Issue