Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Certain accelerators unusable in markup_accel_tooltip #538

Open
jeremypw opened this issue Nov 8, 2021 · 0 comments
Open

Certain accelerators unusable in markup_accel_tooltip #538

jeremypw opened this issue Nov 8, 2021 · 0 comments

Comments

@jeremypw
Copy link
Contributor

jeremypw commented Nov 8, 2021

What Happened?

Setting "less" (<) as an action accelerator is valid (and works) but trying to generate a tooltip with this accelerator fails as it generates invalid markup (<span weight="600" size="smaller" alpha="75%"> <</span>).

Presumably the same would happen with e.g. "greater" (>).

Steps to Reproduce

app.set_accels_for_action (action_name, {"less"});

....

tooltip_markup = Granite.markup_accel_tooltip (app.get_accels_for_action (action_name), text);

Expected Behavior

All valid accelerators should be able to be shown in tooltips (or should be omitted from the tooltip while showing other accels for the same action).

OS Version

6.x (Odin)

Software Version

Latest release (I have run all updates)

Log Output

Failed to set text '[Action description]
<span weight="600" size="smaller" alpha="75%">F7, <</span>' from markup due to error parsing markup: Error on line 2 char 55: “<” is not a valid name

Hardware Info

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant