I’m trying to understand how popup menus work in Gtk nowadays ; I used to be able to do it before with uibuilder’s menu.popup() but now it’s deprecated, I also see in Glade that the “tearoff” attribute for menus is deprecated too (and indeed just checking it in breaks everything) so I’m a bit confused about what the good practice is.
I have my menu defined in Glade, it shows and works, I have an Eventbox around the zone I want to cover, I’m passing the “file” submenu though the “user_data” param of the “button-pressed” event of the Eventbox in Glade, and I do get the
event.button == 3 back alright, but when I
menu.show() nothing happens, not even a warning…?
I tried passing the whole menu but then I got errors, so it seems like I got the right object, I just don’t know how to show it / pop it open
Maybe I’m missing some
Gtk.FLAG in the main window, but I can’t find where, in Glade, would I set such flags…?