[balsa] GNotification does not use HTML markup
- From: Peter Bloomfield <peterb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [balsa] GNotification does not use HTML markup
- Date: Wed, 28 Nov 2018 17:33:52 +0000 (UTC)
commit 7fda6c35d336a2c90a54da2e9431a85654c2f102
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date: Tue Nov 27 15:06:10 2018 -0500
GNotification does not use HTML markup
* libbalsa/information.c (libbalsa_information_varg): so do not
escape markup syntax in the text
ChangeLog | 7 +++++++
libbalsa/information.c | 10 ++--------
2 files changed, 9 insertions(+), 8 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index f326d0d1b..bc171895f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2018-11-27 Peter Bloomfield <pbloomfield bellsouth net>
+
+ GNotification does not use HTML markup
+
+ * libbalsa/information.c (libbalsa_information_varg): so do not
+ escape markup characters in the text
+
2018-11-27 Albrecht Dreß <albrecht dress arcor de>
Clear passwords if authentication fails
diff --git a/libbalsa/information.c b/libbalsa/information.c
index 2cb339bf1..6a9f7edaf 100644
--- a/libbalsa/information.c
+++ b/libbalsa/information.c
@@ -42,7 +42,6 @@ libbalsa_information_varg(GtkWindow *parent, LibBalsaInformationType type,
const char *fmt, va_list ap)
{
gchar *msg;
- gchar *escaped;
const gchar *icon_str;
GIcon *icon;
gboolean send;
@@ -72,15 +71,10 @@ libbalsa_information_varg(GtkWindow *parent, LibBalsaInformationType type,
g_object_unref(icon);
msg = g_strdup_vprintf(fmt, ap);
- /* GNotification uses HTML markup (???), so we must replace '<' and
- * '&' with the corresponding entity in the message string. */
- escaped = g_markup_escape_text(msg, -1);
+ g_notification_set_body(notification, msg);
+ send = msg[0] != '\0';
g_free(msg);
- g_notification_set_body(notification, escaped);
- send = escaped[0] != '\0';
- g_free(escaped);
-
g_object_set_data(G_OBJECT(notification), "send", GINT_TO_POINTER(send));
g_signal_emit_by_name(notification, "notify", NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]