Skip to content

Replace destroy() method with the more idiomatic close()

Emmanuele Bassi requested to merge issue-56 into master

Use gtk_window_close() on a GtkWindow instance is more idiomatic than calling gtk_widget_destroy(), and it's more in line with GTK4, once we've released it.

For some languages, like Rust, the destroy() method is unsafe, as it operates on the reference counting of the C instance.

Fixes: #56 (closed)

Merge request reports