`:map-event` is ugly IMO, because it's a mere implementation detail at best. Doing it properly would be listening to [`GtkMenuToolButton::show-menu`](https://developer.gnome.org/gtk3/stable/GtkMenuToolButton.html#GtkMenuToolBu...). However, just like `GtkWidget::show` on the menu itself, it somehow is emitted twice under GTK >= 3.16. See the [just-filed bug](https://bugzilla.gnome.org/show_bug.cgi?id=769287).
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 or view it on GitHub: https://github.com/geany/geany/issues/1149#issuecomment-236049030