]> git.0d.be Git - empathy.git/commitdiff
adium: add comment explaining why we add x-empathy-mesage-id-*
authorJonny Lamb <jonnylamb@gnome.org>
Fri, 13 May 2011 14:50:38 +0000 (15:50 +0100)
committerJonny Lamb <jonnylamb@gnome.org>
Fri, 13 May 2011 14:50:38 +0000 (15:50 +0100)
Signed-off-by: Jonny Lamb <jonnylamb@gnome.org>
libempathy-gtk/empathy-theme-adium.c

index 8b7f88065b9bb24f4328035b97964ceaa7f1c4c8..095d2058ed4f6a9fcc8ab9dc7b9c35e494071302 100644 (file)
@@ -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 (