[Telepathy] Showing actual image in chat window
Guillaume Desmottes
guillaume.desmottes at collabora.co.uk
Wed May 2 00:38:24 PDT 2012
Le Tuesday 01 May 2012 à 19:42 +0530, Mithun Shitole a écrit :
> Hi,
Hi there,
> I have downloaded the empathy source and compiled it successfully.
>
> I want to add a small feature where if message contains image link,
> actual image should be displayed instead of link.
>
> What I think is I need to check if there is link in message body and
> then put a <image> tag around it.
How would you detect that a link is actually an image and not, say, a
webpage?
I think the proper way to do this is to use formatted messages but
that's currently not implemented in Telepathy:
https://bugs.freedesktop.org/show_bug.cgi?id=15449
If you just want to play with the code and try a quick hack, this
shouldn't be hard to do by hacking the Adium theme code
libempathy-gtk/empathy-theme-adium.c
But of course you'll have to use an Adium theme to test.
Regards,
G.
More information about the telepathy
mailing list