[gnome-calendar/gnome-3-22] source-dialog: escape string in markup



commit c9cf919dea899bd02158869cfa616a4bc5ef9a8c
Author: Mohammed Sadiq <sadiq sadiqpk org>
Date:   Thu Nov 24 12:19:35 2016 +0530

    source-dialog: escape string in markup
    
    Calendar name can potentially contain invalid markup texts.
    So it have to be escaped to be safe.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=774986

 src/gcal-source-dialog.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/gcal-source-dialog.c b/src/gcal-source-dialog.c
index ca5f187..987f6dc 100644
--- a/src/gcal-source-dialog.c
+++ b/src/gcal-source-dialog.c
@@ -1763,7 +1763,7 @@ remove_button_clicked (GtkWidget *button,
         }
 
       // Update notification label
-      str = g_strdup_printf (_("Calendar <b>%s</b> removed"), e_source_get_display_name 
(self->removed_source));
+      str = g_markup_printf_escaped (_("Calendar <b>%s</b> removed"), e_source_get_display_name 
(self->removed_source));
       gtk_label_set_markup (GTK_LABEL (self->notification_label), str);
 
       // Remove old notifications


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]