mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-09 00:04:56 +01:00
get that fix for accels in tooltips correct this time
git-svn-id: svn://localhost/ardour2/branches/3.0@10856 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
5423c45788
commit
ad1ec2bacc
1 changed files with 7 additions and 4 deletions
|
|
@ -351,8 +351,13 @@ UI::set_tip (Widget *w, const gchar *tip, const gchar *hlp)
|
||||||
ustring ap = action->get_accel_path();
|
ustring ap = action->get_accel_path();
|
||||||
if (!ap.empty()) {
|
if (!ap.empty()) {
|
||||||
bool has_key = ActionManager::lookup_entry(ap, key);
|
bool has_key = ActionManager::lookup_entry(ap, key);
|
||||||
if (has_key && key.get_abbrev() != "") {
|
if (has_key) {
|
||||||
msg.append("\n\nKey: ").append(key.get_abbrev());
|
string abbrev = key.get_abbrev();
|
||||||
|
if (!abbrev.empty()) {
|
||||||
|
replace_all (abbrev, "<", "");
|
||||||
|
replace_all (abbrev, ">", "-");
|
||||||
|
msg.append("\n\nKey: ").append (abbrev);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -361,8 +366,6 @@ UI::set_tip (Widget *w, const gchar *tip, const gchar *hlp)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
replace_all (msg, "<", "");
|
|
||||||
replace_all (msg, ">", "-");
|
|
||||||
|
|
||||||
req->widget = w;
|
req->widget = w;
|
||||||
req->msg = msg.c_str();
|
req->msg = msg.c_str();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue