You say "now you are not allowed to give it another label" but I wasn't aware that you could before. If a stock menuitem didn't have the label I wanted I would use a theme icon menuitem with a custom label which is what you've been doing and not having much joy with.zigbert wrote:...<menuitem icon="gtk-undo"> fails but setting <menuitem stock="gtk-undo"> will work - but now you are not allowed to give it another label than the stock-label. Even more strange is it that gtk-media-stop works with both icon and stock setting, while gtk-media-play only works with the stock.
I decided tonight to investigate making the menuitem operate similarly to the button widget whereby you can use a stock icon with a custom label and to my surprise I found that it was already possible! :
Code: Select all
<menuitem stock="gtk-undo" label="_Undo Something"
use-underline="true" accel-key="0x5a" accel-mods="4">
</menuitem>
This is news to me! I think that I should update my menuitem example and the one in the examples folder so that it's documented.
I'd still like to know though why some stock icons loaded as theme icons don't show. I'm going to see if I can find the answer to that.
Regards,
Thunor