Hello everyone,
I apologize in advance if this is not the suitable place to ask for help,
but I find it close to impossible to ask question in any other place on the web,
at least a place where I can find help from the Gtk dev. team.
As the topic resumes it I am migrating a Gtk3 app to Gtk4 and I am facing some issues,
issues that on line search can not help to me to face, so far.
My troubles come from the changes related to the pop-up menus,
In many part of my app I used ’ gtk_menu_new ()
’ and ‘gtk_menu_shell_append()
’ to add item
to this menu, and not such thing as a ‘ui’ file to describe the menu, actually I found it way more
convenient to simply write to code the way I see fit … and now all this seems to be gone …
Of course I browse the (great) new web site that presents the new API, but the help it provides
for that particular feature is rather elusive on the details, I found out that I could pop-up a menu
using ‘gtk_popover_menu_new_from_mode l(NULL)
’ and then add element to this menu using :
gboolean
gtk_popover_menu_add_child (
GtkPopoverMenu* popover,
GtkWidget* child,
const char* id)
So far I was not able to find a working example for this function on the web, in particular because I have
no idea what that ‘char * id’ is …
Thank you in advance for any information on the matter.
Best regards, and thanks for the great work with GTK+.
Sébastien