event-widget: escape event location
https://bugzilla.gnome.org/show_bug.cgi?id=781434
This commit is contained in:
@@ -355,10 +355,12 @@ gcal_event_widget_set_event_tooltip (GcalEventWidget *self,
|
|||||||
/* Append event location */
|
/* Append event location */
|
||||||
if (g_utf8_strlen (gcal_event_get_location (event), -1) > 0)
|
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 (tooltip_mesg, "\n\n");
|
||||||
g_string_append_printf (tooltip_mesg,
|
g_string_append_printf (tooltip_mesg, _("At %s"), escaped_location);
|
||||||
_("At %s"),
|
|
||||||
gcal_event_get_location (event));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
escaped_description = g_markup_escape_text (gcal_event_get_description (event), -1);
|
escaped_description = g_markup_escape_text (gcal_event_get_description (event), -1);
|
||||||
|
|||||||
Reference in New Issue
Block a user