gtk-rs / gtk

DEPRECATED, use https://github.com/gtk-rs/gtk3-rs repository instead!
https://gtk-rs.org/
MIT License
1.24k stars 82 forks source link

Let Widget::hide_on_delete return Inhibit #1009

Closed sophie-h closed 4 years ago

sophie-h commented 4 years ago

Currently it's not possible to pass this directly to connect_delete_event(), because hide_on_delete() only accepts one argument. But that also seems to be the case for the C API. That's why I left it like that.

https://developer.gnome.org/gtk3/stable/GtkWidget.html#GtkWidget-delete-event

Closes #1008

sdroege commented 4 years ago

@GuillaumeGomez All green