mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-08 15:54:57 +01:00
Fix plugin-preset description markup
This commit is contained in:
parent
df666326f7
commit
b8aba905c3
1 changed files with 3 additions and 3 deletions
|
|
@ -93,10 +93,10 @@ PluginPresetsUI::update_preset_list ()
|
||||||
for (std::vector<Plugin::PresetRecord>::const_iterator i = presets.begin (); i != presets.end (); ++i) {
|
for (std::vector<Plugin::PresetRecord>::const_iterator i = presets.begin (); i != presets.end (); ++i) {
|
||||||
Gtk::TreeModel::Row row = *(_plugin_preset_model->append ());
|
Gtk::TreeModel::Row row = *(_plugin_preset_model->append ());
|
||||||
if (p.uri == i->uri) {
|
if (p.uri == i->uri) {
|
||||||
row[_plugin_preset_columns.name] = string_compose ("<span weight=\"bold\" background=\"green\">%1</span>", i->label);
|
row[_plugin_preset_columns.name] = string_compose ("<span weight=\"bold\" background=\"green\">%1</span>", Gtkmm2ext::markup_escape_text (i->label));
|
||||||
found_active = true;
|
found_active = true;
|
||||||
} else {
|
} else {
|
||||||
row[_plugin_preset_columns.name] = i->label;
|
row[_plugin_preset_columns.name] = Gtkmm2ext::markup_escape_text (i->label);
|
||||||
}
|
}
|
||||||
row[_plugin_preset_columns.description] = i->description;
|
row[_plugin_preset_columns.description] = i->description;
|
||||||
row[_plugin_preset_columns.plugin_preset] = *i;
|
row[_plugin_preset_columns.plugin_preset] = *i;
|
||||||
|
|
@ -143,7 +143,7 @@ PluginPresetsUI::preset_selected ()
|
||||||
} else {
|
} else {
|
||||||
d = (*iter)[_plugin_preset_columns.description];
|
d = (*iter)[_plugin_preset_columns.description];
|
||||||
}
|
}
|
||||||
_preset_desc.get_buffer ()->set_text (Gtkmm2ext::markup_escape_text (d));
|
_preset_desc.get_buffer ()->set_text (d);
|
||||||
|
|
||||||
Plugin::PresetRecord const& p = _insert->plugin ()->last_preset ();
|
Plugin::PresetRecord const& p = _insert->plugin ()->last_preset ();
|
||||||
_load_button.set_sensitive (ppr.valid && !(p.valid && p.uri == ppr.uri));
|
_load_button.set_sensitive (ppr.valid && !(p.valid && p.uri == ppr.uri));
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue