GNOME Bugzilla – Bug 651875
Smileys not supported in notifications
Last modified: 2019-11-13 16:43:39 UTC
If I receive a message from someone, I get a brief notification popup at the bottom of the screen. This notification area should support smileys, now I get the plain character representations.
That's done by gnome-shell, not Empathy.
*** Bug 657701 has been marked as a duplicate of this bug. ***
gnome-shell should be using webkit to render the chat notification, IMO. So we can do like in empathy.
No. Zaspire implemented images in Pango attrs, so let's use that.
do you have a URL explaining how I can have images in pango attrs? I did such hacks for maemo by adding place in the layout then render the pixbuf with cairo on top, but that's not going to be easy in complex text view as chats...
it's in bug 653033. the patch there adds support for <img> tags
ok that seems good. thanks. However, this is not that simple to fix actually: If I replace smileys with <img src="file://foo/bar.png"> then url detector in messageTray.js will replace that url with a <span> which wil break the smiley. In empathy what we do is replacing urls and then detect smileys in text between each urls and not on the whole text after the replacement. So should the smiley detected be added to messageTray.js so it can interact with the url detector code there? And probably add a method addBodyWithSmileys() to not replace with smileys in all notifications but only the chats?
I've made a quick hack to replace smileys to unicode chars, but it seems the police used by gnome-shell can't display them
hm, bugzilla does not display then neither it seems :(
*** Bug 670340 has been marked as a duplicate of this bug. ***
(In reply to comment #5) > do you have a URL explaining how I can have images in pango attrs? I did such > hacks for maemo by adding place in the layout then render the pixbuf with cairo > on top, but that's not going to be easy in complex text view as chats... you can create custom shape renderers for PangoAttributes; there is a demo of the API inside gtk+/demos/gtk-demo/rotated_text.c. it should be working with Clutter and St's widgets by default, since we use PangoCairo internally.
(In reply to comment #12) > (In reply to comment #5) > > do you have a URL explaining how I can have images in pango attrs? I did such > > hacks for maemo by adding place in the layout then render the pixbuf with cairo > > on top, but that's not going to be easy in complex text view as chats... > > you can create custom shape renderers for PangoAttributes; there is a demo of > the API inside gtk+/demos/gtk-demo/rotated_text.c. it should be working with > Clutter and St's widgets by default, since we use PangoCairo internally.
Emoji work fine in notifications nowadays and that’s what people use in chat. Closing as this is not relevant anymore.