Don't close a popup menu when clicking on an specific element

I’m working on a Vala Gtk3 application and I have a menu created with Gtk.Menu and shown with popup_at_pointer(). But I want to add two buttons horizontally in a single Gtk.MenuEntry element, like the “font size” buttons in Terminal, which are both in a row, plus a label with the current size.

I tried adding a Gtk.Box inside the Gtk.MenuEntry, but the buttons don’t receive the mouse event when clicked; instead, the Gtk.MenuEntry receives the event and closes the menu.

How can I do this?

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