viking-gps / viking

Viking is a free/open source program to manage GPS data (inc GPX, FIT, TCX and KML files). You can import and plot tracks, routes and waypoints, show OpenStreetMaps (OSM), Bing Aerial and other maps, generate Mapnik maps, geotag images, make new tracks, routes and waypoints, see real-time GPS position, etc. It is written mostly in C with GTK
http://sourceforge.net/projects/viking/
GNU General Public License v2.0
223 stars 55 forks source link

Emit message when greyed out icons are pressed #290

Open jidanni opened 1 month ago

jidanni commented 1 month ago

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 commented 1 month ago

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 commented 1 month ago

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

rnorris commented 3 weeks ago

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.