[Github-comments] [geany/geany] Split window file selector does not work (#1149)

Colomban Wendling notifications at xxxxx
Thu Jul 28 22:53:51 UTC 2016


`: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#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](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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20160728/860a9c1d/attachment.html>


More information about the Github-comments mailing list