From a824c3e5bdab686901b02667609282e7d596a6af Mon Sep 17 00:00:00 2001 From: Alessandro Ghedini Date: Fri, 27 Jan 2012 21:34:48 +0100 Subject: Imported Upstream version 0.4.2 --- src/utilities/trigger.vala | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src/utilities/trigger.vala') diff --git a/src/utilities/trigger.vala b/src/utilities/trigger.vala index 4b6167b..854cbb4 100644 --- a/src/utilities/trigger.vala +++ b/src/utilities/trigger.vala @@ -182,11 +182,7 @@ public class Trigger : GLib.Object { this.label = Gtk.accelerator_get_label(keysym, this.modifiers); } - this.label = this.label.replace("<", "<"); - this.label = this.label.replace(">", ">"); - this.label = this.label.replace("&", "&"); - - this.label_with_specials = this.label; + this.label_with_specials = GLib.Markup.escape_text(this.label); if (this.turbo && this.delayed && this.centered) this.label_with_specials += (" [ " + _("Turbo") + " | " + _("Delayed") + " | " + _("Centered") + " ]"); -- cgit v1.2.3