diff options
author | Danielle Madeley <danielle.madeley@collabora.co.uk> | 2011-05-20 13:38:06 +0800 |
---|---|---|
committer | Danielle Madeley <danielle.madeley@collabora.co.uk> | 2011-06-14 00:04:04 +0800 |
commit | 20cb884ca67835dfa20703c55763f613a41551a2 (patch) | |
tree | 7f58c7f50e77ef26e4b5afea860745254e3f3157 /libempathy-gtk/empathy-log-window.c | |
parent | 878a1b3a5204e9713e9ce6203af14cb51c6f96af (diff) | |
download | gsoc2013-empathy-20cb884ca67835dfa20703c55763f613a41551a2.tar gsoc2013-empathy-20cb884ca67835dfa20703c55763f613a41551a2.tar.gz gsoc2013-empathy-20cb884ca67835dfa20703c55763f613a41551a2.tar.bz2 gsoc2013-empathy-20cb884ca67835dfa20703c55763f613a41551a2.tar.lz gsoc2013-empathy-20cb884ca67835dfa20703c55763f613a41551a2.tar.xz gsoc2013-empathy-20cb884ca67835dfa20703c55763f613a41551a2.tar.zst gsoc2013-empathy-20cb884ca67835dfa20703c55763f613a41551a2.zip |
Set the edited icon for edited messages in the log viewer
Diffstat (limited to 'libempathy-gtk/empathy-log-window.c')
-rw-r--r-- | libempathy-gtk/empathy-log-window.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/libempathy-gtk/empathy-log-window.c b/libempathy-gtk/empathy-log-window.c index eee79ffb2..4d304c582 100644 --- a/libempathy-gtk/empathy-log-window.c +++ b/libempathy-gtk/empathy-log-window.c @@ -771,8 +771,15 @@ get_icon_for_event (TplEvent *event) { const gchar *icon = NULL; + if (TPL_IS_TEXT_EVENT (event)) + { + TplTextEvent *text = TPL_TEXT_EVENT (event); + + if (!tp_str_empty (tpl_text_event_get_supersedes_token (text))) + icon = EMPATHY_IMAGE_EDIT_MESSAGE; + } #ifdef HAVE_CALL_LOGS - if (TPL_IS_CALL_EVENT (event)) + else if (TPL_IS_CALL_EVENT (event)) { TplCallEvent *call = TPL_CALL_EVENT (event); TplCallEndReason reason = tpl_call_event_get_end_reason (call); |