Basically, I want something that acts like a GtkMenu when it comes to focus and placement, but with an arbitrary widget (button, slider, tree, calendar... anything, really) inside. Putting the widget inside a GtkMenuItem doesn't work - that causes a lot of padding, and it's the MenuItem that receives click events instead of the widget. Is this possible?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):