Skip to content

using gtk_widget_destroy instead of gtk_window_close for destory#339

Closed
sgehrman wants to merge 4 commits intoleanflutter:mainfrom
sgehrman:main
Closed

using gtk_widget_destroy instead of gtk_window_close for destory#339
sgehrman wants to merge 4 commits intoleanflutter:mainfrom
sgehrman:main

Conversation

@sgehrman
Copy link

using: gtk_widget_destroy(GTK_WIDGET(get_window(self)));

instead of:
self->_is_prevent_close = false;
gtk_window_close(get_window(self));

problem happens if you don't set prevent close, but in your own app you set:
g_signal_connect(window, "delete-event",
G_CALLBACK(gtk_widget_hide_on_delete), NULL);

then destroy won't work since it will call close and be prevented from quitting the app.

@lijy91
Copy link
Member

lijy91 commented Jul 1, 2023

This PR will address the issues confirmed before closure #343

@lijy91 lijy91 closed this Jul 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants