[gimp/wip/Jehan/issue-8518-welcome-dialog-macos] Issue #8518: Could not close new Welcome dialog.
- From: Jehan <jehanp src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/wip/Jehan/issue-8518-welcome-dialog-macos] Issue #8518: Could not close new Welcome dialog.
- Date: Sat, 10 Sep 2022 22:03:21 +0000 (UTC)
commit c10a451e1a2cc5dd4be94bc30bc10991d525cb16
Author: Jehan <jehan girinstud io>
Date: Sat Sep 10 23:56:56 2022 +0200
Issue #8518: Could not close new Welcome dialog.
I can't reproduce this on Linux and according to docs and tests, the
"response" signal handles the delete-event.
But maybe there is a bug on macOS where it is not triggered when
clicking the window button?
app/dialogs/welcome-dialog.c | 4 ++++
1 file changed, 4 insertions(+)
---
diff --git a/app/dialogs/welcome-dialog.c b/app/dialogs/welcome-dialog.c
index 94b626adf7..6bf585e070 100644
--- a/app/dialogs/welcome-dialog.c
+++ b/app/dialogs/welcome-dialog.c
@@ -98,6 +98,10 @@ welcome_dialog_create (Gimp *gimp)
"response",
G_CALLBACK (gtk_widget_destroy),
NULL);
+ g_signal_connect (welcome_dialog,
+ "delete-event",
+ G_CALLBACK (gtk_widget_destroy),
+ NULL);
main_vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 12);
gtk_container_set_border_width (GTK_CONTAINER (main_vbox), 12);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]