event-widget: escape event location

https://bugzilla.gnome.org/show_bug.cgi?id=781434
This commit is contained in:
Georges Basile Stavracas Neto
2017-04-18 09:38:44 -03:00
parent cf787ea5b2
commit 5b44a34407
+5 -3
View File
@@ -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);