:map-event is ugly IMO, because it's a mere implementation detail at best. Doing it properly would be listening to GtkMenuToolButton::show-menu. However, just like GtkWidget::show on the menu itself, it somehow is emitted twice under GTK >= 3.16. See the just-filed bug.

I'm not sure what to do. This is clearly a GTK bug, so I'm not very keen on adding a hack just for it until it gets fixed.

IIUC "show" is called everytime one calls gtk_widget_show() which can be more than once?

No, it's only emitted if the visible state changed. What happens here is that the menu is effectively shown twice.


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.