diff options
author | Will Thompson <will@willthompson.co.uk> | 2012-01-26 00:01:32 +0800 |
---|---|---|
committer | Will Thompson <will@willthompson.co.uk> | 2012-01-26 00:01:32 +0800 |
commit | ddd8a9a000833d87260f81c4459063b32e2e14e7 (patch) | |
tree | e41b456cfd9857fec9f122be2fdd94cc4da07eab /libempathy-gtk/empathy-theme-irc.c | |
parent | 6b453cffcd14296f9625eb54af7cb87dc75c9c5f (diff) | |
parent | cb4d7495d1ed8fabe40e552a4107ce6398814323 (diff) | |
download | gsoc2013-empathy-ddd8a9a000833d87260f81c4459063b32e2e14e7.tar gsoc2013-empathy-ddd8a9a000833d87260f81c4459063b32e2e14e7.tar.gz gsoc2013-empathy-ddd8a9a000833d87260f81c4459063b32e2e14e7.tar.bz2 gsoc2013-empathy-ddd8a9a000833d87260f81c4459063b32e2e14e7.tar.lz gsoc2013-empathy-ddd8a9a000833d87260f81c4459063b32e2e14e7.tar.xz gsoc2013-empathy-ddd8a9a000833d87260f81c4459063b32e2e14e7.tar.zst gsoc2013-empathy-ddd8a9a000833d87260f81c4459063b32e2e14e7.zip |
Merge branch 'highlight-regex'
Diffstat (limited to 'libempathy-gtk/empathy-theme-irc.c')
-rw-r--r-- | libempathy-gtk/empathy-theme-irc.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libempathy-gtk/empathy-theme-irc.c b/libempathy-gtk/empathy-theme-irc.c index 2ee81a23e..ed8e3b380 100644 --- a/libempathy-gtk/empathy-theme-irc.c +++ b/libempathy-gtk/empathy-theme-irc.c @@ -50,7 +50,8 @@ theme_irc_create_tags (EmpathyThemeIrc *theme) static void theme_irc_append_message (EmpathyChatTextView *view, - EmpathyMessage *message) + EmpathyMessage *message, + gboolean should_highlight) { GtkTextBuffer *buffer; const gchar *name; @@ -77,7 +78,7 @@ theme_irc_append_message (EmpathyChatTextView *view, if (empathy_contact_is_user (contact)) { nick_tag = EMPATHY_THEME_IRC_TAG_NICK_SELF; } else { - if (empathy_message_should_highlight (message)) { + if (should_highlight) { nick_tag = EMPATHY_THEME_IRC_TAG_NICK_HIGHLIGHT; } else { nick_tag = EMPATHY_THEME_IRC_TAG_NICK_OTHER; |