[gnome-calendar] event-widget: escape event location



commit 5b44a3440731674ec4e4a73b25d651e536cf7bb1
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Tue Apr 18 09:38:44 2017 -0300

    event-widget: escape event location
    
    https://bugzilla.gnome.org/show_bug.cgi?id=781434

 src/gcal-event-widget.c |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/src/gcal-event-widget.c b/src/gcal-event-widget.c
index 8ff536d..38b4120 100644
--- a/src/gcal-event-widget.c
+++ b/src/gcal-event-widget.c
@@ -355,10 +355,12 @@ gcal_event_widget_set_event_tooltip (GcalEventWidget *self,
   /* Append event location */
   if (g_utf8_strlen (gcal_event_get_location (event), -1) > 0)
     {
+      g_autofree gchar *location;
+
+      escaped_location = g_markup_escape_text (gcal_event_get_location (event), -1);
+
       g_string_append (tooltip_mesg, "\n\n");
-      g_string_append_printf (tooltip_mesg,
-                              _("At %s"),
-                              gcal_event_get_location (event));
+      g_string_append_printf (tooltip_mesg, _("At %s"), escaped_location);
     }
 
   escaped_description = g_markup_escape_text (gcal_event_get_description (event), -1);


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