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

Emit message when greyed out icons are pressed #290

Open
jidanni opened this issue Jul 24, 2024 · 3 comments
Open

Emit message when greyed out icons are pressed #290

jidanni opened this issue Jul 24, 2024 · 3 comments

Comments

@jidanni
Copy link
Contributor

jidanni commented Jul 24, 2024

Pressing greyed out icons should may a message 'adding waypoints is disabled for this layer' etc., instead of just doing nothing.
Else the user, who has never seen what the non-greyed out version of a particular icon looks like,
thinks they can still press it.

@rnorris
Copy link
Collaborator

rnorris commented Aug 3, 2024

I think this is by design of the underlying GUI GTK toolkit behaviour (and AFAIK all GUI toolkits behave this way included Qt, WinForms, WxWidgets), so the top level program doesn't get notified about such events.

Can you identify an existing program - preferably a 'popular/mainstream' one - that offers such feedback?

@jidanni
Copy link
Contributor Author

jidanni commented Aug 17, 2024

All I know is that emacs would at least beep in such situations. But of course emacs isn't inside a browser.

@rnorris
Copy link
Collaborator

rnorris commented Aug 24, 2024

Ah, I always turn off beeps!

I noticed the other day using VMWare Workstation (on Windows) - that it does respond to clicks on (at least some) inactive buttons on the toolbar - with some kind of dialog warning message. But none of the inactive menu entries did.

However, I still don't think that is possible with the GTK framework. But I've not researched that definitively.

Alternatively, what might be easier to achieve, is changing the tooltip message as appropriate.

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

2 participants