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 589842 - GtkAction API to have its menu item proxies have always-show-image set
GtkAction API to have its menu item proxies have always-show-image set
Status: RESOLVED WONTFIX
Product: gtk+
Classification: Platform
Component: Class: UIManager / Actions
unspecified
Other Linux
: Normal enhancement
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks: 589808 590647
 
 
Reported: 2009-07-27 08:21 UTC by Christian Persch
Modified: 2014-05-22 01:23 UTC
See Also:
GNOME target: ---
GNOME version: Unversioned Enhancement


Attachments
patch (7.76 KB, patch)
2009-08-16 21:12 UTC, Christian Persch
committed Details | Review
_additional_ patch (4.40 KB, patch)
2009-11-11 18:05 UTC, Christian Persch
committed Details | Review

Description Christian Persch 2009-07-27 08:21:52 UTC
There should be API (property + accessors) on GtkAction to have its menu item proxies automatically turn on the always-show-image property on the menu item.
Comment 1 Christian Persch 2009-08-16 21:12:17 UTC
Created attachment 140916 [details] [review]
patch
Comment 2 Christian Dywan 2009-09-01 09:38:06 UTC
The patch is straightforward and looks good to me.

I wonder about extending UI manager markup as well, which would let you avoid instantiating actions in code to set the value.
Comment 3 Christian Persch 2009-11-11 18:05:43 UTC
Created attachment 147496 [details] [review]
_additional_ patch

This patch adds UI manager markup support to always show images in menu items, as suggested in comment 2. It is independent of the previous patch; I'd like for *both* of these ways to set the always-show-image property to be available.

There is a tiny problem in that when setting the action's property (from the previous patch) after the menu item is created, the action property overrides the UI manager markup property. It's certainly fixable; just not sure if it matters.

As for the previous patch in attachment 140916 [details] [review]: is it ok-to-commit?
Comment 4 Matthias Clasen 2009-11-27 06:58:37 UTC
Comment on attachment 140916 [details] [review]
patch

I guess we need to do this
Comment 5 Christian Persch 2009-11-27 18:18:34 UTC
Both committed to master, with Since: tags changed to 2.20 on the first patch.

Now for the issue mentioned in comment 3, do we care about this? If we do, I think this can be easily fixed.
Comment 6 Javier Jardón (IRC: jjardon) 2009-11-30 05:20:03 UTC
Comment on attachment 140916 [details] [review]
patch

commit e571273d81cc22bd258bfd47b6c53672043ea7da
Comment 7 Javier Jardón (IRC: jjardon) 2009-11-30 05:21:44 UTC
Comment on attachment 147496 [details] [review]
_additional_ patch

commit 65485cbc7c8d48513aa7e14477a2eacf82276f9b
Comment 8 Matthias Clasen 2014-05-22 01:23:21 UTC
closing feature requests for deprecated components