[gnome-shell] calendar: Fix quoting issues in notification titles
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] calendar: Fix quoting issues in notification titles
- Date: Sat, 21 Feb 2015 18:14:21 +0000 (UTC)
commit 945caed602ce0951388e8d0cfd84c3e929f64cdd
Author: Florian Müllner <fmuellner gnome org>
Date: Sat Feb 21 19:08:27 2015 +0100
calendar: Fix quoting issues in notification titles
Markup in notification titles is not support (and never has been).
Therefore the text is run through g_markup_escape_text(), and as
a result we do have to use markup internally to correctly show
legal-but-escape characters like '&' or '"'.
https://bugzilla.gnome.org/show_bug.cgi?id=744894
js/ui/calendar.js | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/js/ui/calendar.js b/js/ui/calendar.js
index 97a8523..eb1dd28 100644
--- a/js/ui/calendar.js
+++ b/js/ui/calendar.js
@@ -1049,7 +1049,7 @@ const Message = new Lang.Class({
setTitle: function(text) {
let title = text ? _fixMarkup(text.replace(/\n/g, ' '), false) : '';
- this.titleLabel.text = title;
+ this.titleLabel.clutter_text.set_markup(title);
},
setBody: function(text) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]