The above pic is from Blender (which uses its home-built graphics kit), I like that 2D menu, is it possible to create one similarly with Gtk?
You can use a GtkPopover to define a complex menu structure.
Expected; wanted to know if Gtk has built-in support for 2D menu, anyway np
There is an internal widget called
- is private
- it uses tree models and cell renderers
- it’s gone away from GTK4, just like every other
Popovers can hold complex widgets, which means they can deal with complex layouts; menus cannot, because menu widgets were written for very specific UI guidelines.
I see. Are the methods
Gtk.Box.pack_end being dropped too? After the release or just as the Gtk 4 is developing, can we get a list of changes that must be taken care while making apps for future compatibility?
We have a whole porting guide. It’s usually kept up to date, and will definitely be the canonical source on release.
Found a typo; https://gnome.pages.gitlab.gnome.org/gtk/gtk/ch29s02.html#id-188.8.131.52.17, it should be “Adapt to GtkBox API changes”
You can fix it and open a merge request, and I’ll be happy to review and merge it.
Done! Forking took time…
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.