[gnome-calendar/gnome-3-24] event-widget: escape event location



commit 7aa7dc3b0f4b7cb5f2618ba53634bf17c8d689d4
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 6dd4ebf..3cb7e1e 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,
-                              "%s",
-                              gcal_event_get_location (event));
+      g_string_append_printf (tooltip_mesg, "%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]