After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 642209 - status messages show markup
status messages show markup
Status: RESOLVED FIXED
Product: gnome-shell
Classification: Core
Component: message-tray
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gnome-shell-maint
gnome-shell-maint
Depends on:
Blocks:
 
 
Reported: 2011-02-13 02:52 UTC by William Jon McCann
Modified: 2011-02-14 17:59 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
telepathyClient: allow pango markup in presence changes (1.18 KB, patch)
2011-02-13 03:19 UTC, Jasper St. Pierre (not reading bugmail)
committed Details | Review
telepathyClient: Support markup in the title of presence changes (1.06 KB, patch)
2011-02-14 04:20 UTC, Jasper St. Pierre (not reading bugmail)
reviewed Details | Review
telepathyClient: Support markup in the title of presence changes (2.55 KB, patch)
2011-02-14 17:11 UTC, Jasper St. Pierre (not reading bugmail)
committed Details | Review

Description William Jon McCann 2011-02-13 02:52:38 UTC
When someone goes "away" in an open conversation I see something like this:

Jon is away. <i>(Away)</i>
Comment 1 Jasper St. Pierre (not reading bugmail) 2011-02-13 03:19:16 UTC
Created attachment 180759 [details] [review]
telepathyClient: allow pango markup in presence changes

We were adding pango markup to the message in ContactManager.setPresence,
but weren't correctly marking the message as containing pango markup,
allowing for uglyness such as "User is <i>away</i>." being shown to the
user.
Comment 2 drago01 2011-02-13 12:18:56 UTC
Review of attachment 180759 [details] [review]:

Looks good.
Comment 3 Jasper St. Pierre (not reading bugmail) 2011-02-13 13:48:52 UTC
Comment on attachment 180759 [details] [review]
telepathyClient: allow pango markup in presence changes

pushed
Comment 4 Jasper St. Pierre (not reading bugmail) 2011-02-14 04:20:05 UTC
Created attachment 180801 [details] [review]
telepathyClient: Support markup in the title of presence changes

Follow-up to commit 09717aae58978b2467835495e1f5d842099eaf67 so
title changes also support markup instead of the ugly "<i></i>"
status.
Comment 5 Dan Winship 2011-02-14 13:44:36 UTC
Comment on attachment 180801 [details] [review]
telepathyClient: Support markup in the title of presence changes

The original patch is incorrect. It will cause markup-like text in IMs to be treated as markup, when it is actually plain text. (That is, if there are <i></i>s in the body of a message, it means that the people are *talking about* markup [as in this sentence], not *using* markup.)
Comment 6 Dan Winship 2011-02-14 16:11:36 UTC
Comment on attachment 180801 [details] [review]
telepathyClient: Support markup in the title of presence changes

blah. my bad. wasn't paying attention

This patch is fine, but setPresence() still has a bug in it; it needs to call GLib.markup_escape_text() on this.title too, since the user could potentially have wacky punctuation in their name
Comment 7 Jasper St. Pierre (not reading bugmail) 2011-02-14 17:11:57 UTC
Created attachment 180842 [details] [review]
telepathyClient: Support markup in the title of presence changes

Follow-up to commit 09717aae58978b2467835495e1f5d842099eaf67 so
title changes also support markup instead of the ugly "<i></i>"
status.

Additionally, make sure to escape the contact's title as that
may accidentally contain unsafe markup or characters.
Comment 8 Jasper St. Pierre (not reading bugmail) 2011-02-14 17:59:43 UTC
Attachment 180842 [details] pushed as ed6af52 - telepathyClient: Support markup in the title of presence changes