Nested PopoverMenu in XML


I’d like to use a PopoverMenu with the „traditional“ submenus (not the default sliding ones). According to the documentation this can be archived using gtk_popover_menu_new_from_model_full with the GTK_POPOVER_MENU_NESTED flag. While this seems to work fine I would prefer to set the menu model property directly in the XML file but I can find to way to set the needed flag there.

So is it possible to use nested submenus directly from XML and if yes how do I do it?

Thanks in advance.

That is currently not possible. It would require a small change in gtk to turn the flags into a property of the popover menu object.

All right, thank you for your answere I will write this part in C instead of XML for now.

I guess it would make sense to open a issue/feature request for the implementation of the property?

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.