testcalendar: Close window properly

This commit is contained in:
Timm Bäder 2020-01-27 14:22:20 +01:00 committed by Matthias Clasen
parent 64c6229f54
commit 3a727eed7a

View File

@ -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);
}