aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk/empathy-theme-adium.c
diff options
context:
space:
mode:
authorJonny Lamb <jonnylamb@gnome.org>2011-05-13 18:22:22 +0800
committerJonny Lamb <jonnylamb@gnome.org>2011-05-13 18:22:22 +0800
commitbd0755be84f285e48272fb0b7ac154bad4be0902 (patch)
treee400c9db7a27792e9d222daaac9f1804c8be8de3 /libempathy-gtk/empathy-theme-adium.c
parente7afbce3f6925af7f3d43a443304f566a02d4942 (diff)
downloadgsoc2013-empathy-bd0755be84f285e48272fb0b7ac154bad4be0902.tar
gsoc2013-empathy-bd0755be84f285e48272fb0b7ac154bad4be0902.tar.gz
gsoc2013-empathy-bd0755be84f285e48272fb0b7ac154bad4be0902.tar.bz2
gsoc2013-empathy-bd0755be84f285e48272fb0b7ac154bad4be0902.tar.lz
gsoc2013-empathy-bd0755be84f285e48272fb0b7ac154bad4be0902.tar.xz
gsoc2013-empathy-bd0755be84f285e48272fb0b7ac154bad4be0902.tar.zst
gsoc2013-empathy-bd0755be84f285e48272fb0b7ac154bad4be0902.zip
adium: set x-empathy-message-id class in messageStyles
Signed-off-by: Jonny Lamb <jonnylamb@gnome.org>
Diffstat (limited to 'libempathy-gtk/empathy-theme-adium.c')
-rw-r--r--libempathy-gtk/empathy-theme-adium.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/libempathy-gtk/empathy-theme-adium.c b/libempathy-gtk/empathy-theme-adium.c
index 06410c528..c947c2897 100644
--- a/libempathy-gtk/empathy-theme-adium.c
+++ b/libempathy-gtk/empathy-theme-adium.c
@@ -638,6 +638,7 @@ theme_adium_append_message (EmpathyChatView *view,
EmpathyThemeAdium *theme = EMPATHY_THEME_ADIUM (view);
EmpathyThemeAdiumPriv *priv = GET_PRIV (theme);
EmpathyContact *sender;
+ TpMessage *tp_msg;
TpAccount *account;
gchar *body_escaped;
const gchar *body;
@@ -759,6 +760,16 @@ theme_adium_append_message (EmpathyChatView *view,
* %status% - See %status% in theme_adium_append_html ()
*/
+ /* x-empathy-message-id-* */
+ tp_msg = empathy_message_get_tp_message (msg);
+ if (tp_msg != NULL) {
+ gchar *tmp = tp_escape_as_identifier (
+ tp_message_get_token (tp_msg));
+ g_string_append_printf (message_classes,
+ " x-empathy-message-id-%s", tmp);
+ g_free (tmp);
+ }
+
/* Define javascript function to use */
if (consecutive) {
func = priv->allow_scrolling ? "appendNextMessage" : "appendNextMessageNoScroll";