About GtkBuilder, GMenu, and GAction (was Re: Deprecation of GtkImageMenuItem)

2014-10-23 Thread Jean Brefort
Le jeudi 23 octobre 2014 à 10:31 +0100, Emmanuele Bassi a écrit : another recommendation is to *not* use GtkMenu and friends directly, but to use GtkBuilder, GAction, and GMenu — follow the How Do I document here: https://developer.gnome.org/GMenu/ — to describe your menus with XML, which also

Re: About GtkBuilder, GMenu, and GAction (was Re: Deprecation of GtkImageMenuItem)

2014-10-23 Thread Emmanuele Bassi
hi; you can set an id attribute on any section, and then retrieve the GMenu associated with that section, at which point you can add any further item there, e.g.: section attribute name=idview-placeholder/attribute item ... /item /section then use the GMenuModel API to