From 1c40d3370a1d2e1e98b1609377e0903a2ca40f6f Mon Sep 17 00:00:00 2001 From: Jonny Lamb Date: Fri, 13 May 2011 15:50:38 +0100 Subject: adium: add comment explaining why we add x-empathy-mesage-id-* Signed-off-by: Jonny Lamb --- libempathy-gtk/empathy-theme-adium.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'libempathy-gtk') diff --git a/libempathy-gtk/empathy-theme-adium.c b/libempathy-gtk/empathy-theme-adium.c index 8b7f88065..095d2058e 100644 --- a/libempathy-gtk/empathy-theme-adium.c +++ b/libempathy-gtk/empathy-theme-adium.c @@ -771,7 +771,11 @@ theme_adium_append_message (EmpathyChatView *view, * %status% - See %status% in theme_adium_append_html () */ - /* x-empathy-message-id-* */ + /* This is slightly a hack, but it's the only way to add + * arbitrary data to messages in the HTML. We add another + * class called "x-empathy-message-id-*" to the message. This + * way, we can remove the unread marker for this specific + * message later. */ tp_msg = empathy_message_get_tp_message (msg); if (tp_msg != NULL) { gchar *tmp = tp_escape_as_identifier ( -- cgit v1.2.3