[empathy: 19/22] adium: add comment explaining why we add x-empathy-mesage-id-*
- From: Jonny Lamb <jonnylamb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [empathy: 19/22] adium: add comment explaining why we add x-empathy-mesage-id-*
- Date: Tue, 17 May 2011 08:38:15 +0000 (UTC)
commit 1c40d3370a1d2e1e98b1609377e0903a2ca40f6f
Author: Jonny Lamb <jonnylamb gnome org>
Date: Fri May 13 15:50:38 2011 +0100
adium: add comment explaining why we add x-empathy-mesage-id-*
Signed-off-by: Jonny Lamb <jonnylamb gnome org>
libempathy-gtk/empathy-theme-adium.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/libempathy-gtk/empathy-theme-adium.c b/libempathy-gtk/empathy-theme-adium.c
index 8b7f880..095d205 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 (
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]