[empathy: 11/19] Set the edited icon for edited messages in the log viewer
- From: Danielle Madeley <daniellem src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [empathy: 11/19] Set the edited icon for edited messages in the log viewer
- Date: Mon, 20 Jun 2011 10:08:50 +0000 (UTC)
commit 20cb884ca67835dfa20703c55763f613a41551a2
Author: Danielle Madeley <danielle madeley collabora co uk>
Date: Fri May 20 15:38:06 2011 +1000
Set the edited icon for edited messages in the log viewer
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 eee79ff..4d304c5 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]