summaryrefslogtreecommitdiff
path: root/tests/testcalendar.c
diff options
context:
space:
mode:
authorTimm Bäder <mail@baedert.org>2020-01-27 14:22:20 +0100
committerMatthias Clasen <mclasen@redhat.com>2020-02-07 13:15:59 -0500
commit3a727eed7a08e37109d380670e3ac4e1ad6eafb4 (patch)
tree574a32d1b475227c12fcca17b8c0aa1ceaf38558 /tests/testcalendar.c
parent64c6229f54bb2a60443fa47d394332938df6ab18 (diff)
downloadgtk+-3a727eed7a08e37109d380670e3ac4e1ad6eafb4.tar.gz
testcalendar: Close window properly
Diffstat (limited to 'tests/testcalendar.c')
-rw-r--r--tests/testcalendar.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/testcalendar.c b/tests/testcalendar.c
index 6bc4b3690a..98481331a0 100644
--- a/tests/testcalendar.c
+++ b/tests/testcalendar.c
@@ -656,6 +656,7 @@ create_calendar(void)
gtk_window_set_default_widget (GTK_WINDOW (window), button);
gtk_window_set_default_size (GTK_WINDOW (window), 600, 0);
+ g_signal_connect (window, "close-request", G_CALLBACK (gtk_main_quit), NULL);
gtk_widget_show (window);
}