diff options
author | Robin Gareus <robin@gareus.org> | 2017-09-14 19:22:44 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2017-09-14 19:23:37 +0200 |
commit | ae0dcdc0c5d13483271065c360e378202d20170a (patch) | |
tree | 14b6b578e0377216710869ce94476a5dba0a5b96 /gtk2_ardour/patch_change_widget.cc | |
parent | 315792b215aca2446c48b7a840d744d8662ff980 (diff) |
Fix various tooltip markup (ampersand) entity-escape:5.12
* track/port names
* plugin-names
* MIDI patch-names
Diffstat (limited to 'gtk2_ardour/patch_change_widget.cc')
-rw-r--r-- | gtk2_ardour/patch_change_widget.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gtk2_ardour/patch_change_widget.cc b/gtk2_ardour/patch_change_widget.cc index 75f42ea546..f82db6a27a 100644 --- a/gtk2_ardour/patch_change_widget.cc +++ b/gtk2_ardour/patch_change_widget.cc @@ -32,6 +32,7 @@ #include "ardour/plugin_insert.h" #include "gtkmm2ext/menu_elems.h" +#include "gtkmm2ext/utils.h" #include "widgets/tooltips.h" #include "gui_thread.h" @@ -268,7 +269,8 @@ PatchChangeWidget::refill_program_list () const uint8_t pgm = key.program(); _program_btn[pgm].set_text (n); - set_tooltip (_program_btn[pgm], string_compose (_("%1 (Pgm-%2)"), n, (int)(pgm +1))); + set_tooltip (_program_btn[pgm], string_compose (_("%1 (Pgm-%2)"), + Gtkmm2ext::markup_escape_text (n), (int)(pgm +1))); unset_notes.reset (pgm); } } |