aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk
diff options
context:
space:
mode:
authorJonny Lamb <jonnylamb@gnome.org>2011-05-13 22:50:38 +0800
committerJonny Lamb <jonnylamb@gnome.org>2011-05-13 22:50:38 +0800
commit1c40d3370a1d2e1e98b1609377e0903a2ca40f6f (patch)
tree68a9881efd49581fc8114b82f4e7f2f746b865d6 /libempathy-gtk
parent46c85cbe83e943ce5b45fa8b66e19fe583f7d0ca (diff)
downloadgsoc2013-empathy-1c40d3370a1d2e1e98b1609377e0903a2ca40f6f.tar
gsoc2013-empathy-1c40d3370a1d2e1e98b1609377e0903a2ca40f6f.tar.gz
gsoc2013-empathy-1c40d3370a1d2e1e98b1609377e0903a2ca40f6f.tar.bz2
gsoc2013-empathy-1c40d3370a1d2e1e98b1609377e0903a2ca40f6f.tar.lz
gsoc2013-empathy-1c40d3370a1d2e1e98b1609377e0903a2ca40f6f.tar.xz
gsoc2013-empathy-1c40d3370a1d2e1e98b1609377e0903a2ca40f6f.tar.zst
gsoc2013-empathy-1c40d3370a1d2e1e98b1609377e0903a2ca40f6f.zip
adium: add comment explaining why we add x-empathy-mesage-id-*
Signed-off-by: Jonny Lamb <jonnylamb@gnome.org>
Diffstat (limited to 'libempathy-gtk')
-rw-r--r--libempathy-gtk/empathy-theme-adium.c6
1 files changed, 5 insertions, 1 deletions
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 (