After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 746970 - set gmenu items (in)sensitive by (action, parameter)
set gmenu items (in)sensitive by (action, parameter)
Status: RESOLVED WONTFIX
Product: glib
Classification: Platform
Component: gapplication
unspecified
Other Linux
: Normal enhancement
: ---
Assigned To: gtkdev
gtkdev
Depends on:
Blocks: 745329
 
 
Reported: 2015-03-29 12:34 UTC by Christian Persch
Modified: 2015-04-21 14:47 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Christian Persch 2015-03-29 12:34:29 UTC
(I know we've talked about this before on IRC, and I thought it was filed, but apparently it's not.)

It should be possible to set menu items (in)sensitive by (action, parameter) *pair* instead of just by action alone. This would enable actually using parameters in menus in non-trivial applications like gnome-terminal.
Comment 1 Matthias Clasen 2015-03-29 19:37:58 UTC
This sort of use case is discussed in bug 688421
Comment 2 Lars Karlitski 2015-03-30 09:13:46 UTC
(In reply to Christian Persch from comment #0)
> [...] This would enable actually using parameters in menus in non-trivial
> applications like gnome-terminal.

This is not required at all. Can you point to an example in gnome-terminal where having this is necessary?

In my branch, I ported some actions away from using parameters not only because that's the only way to make them insensitive, but also because the usage of parameters was very unconventional and semantically weird.
Comment 3 Allison Karlitskaya (desrt) 2015-04-21 14:47:37 UTC
I think that we can't really ever make this happen, so let's close it.