Create GtkMenuItem with icon and move it to reserved space like GtkImageMenuItem did
For reasons not clear to me GtkImageMenuItem was deprecated in GTK 3.10 and the documentation now suggests to add icons manually by packing a box and adding it to a plain GtkMenuItem.
While this works styling is completely wrong (how it looks: left; how it should look: right):
Is there an option to move the icons into the space reserved on the left (and for which documentation still states "space for toggles and icons, regardless of their actual presence", see reserve-toggle-size
as well as gtk-menu-get-reserve-toggle-size
and gtk-menu-set-reserve-toggle-size
?
For Inkscape I added custom code, which checks the allocation of the menu item and the contained icon, calculates how far it needs to shift the icon to the left from this, and uses CSS to do the shifting. However this seems unnecessarily complex and fragile for something I feel should be offered by the toolkit.
Is there an option I missed? If not, I think a possibility to easily add icons to menu items needs to be re-introduced into gtk (even if GtkImageMenuItem itself is not re-introduced). This seems to be a common problem which multiple projects face...