diff options
author | Timm Bäder <mail@baedert.org> | 2017-06-23 20:33:52 +0200 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2017-07-19 21:27:14 -0400 |
commit | 1bffccd583443734bbc8540b3a395623a28a5fd8 (patch) | |
tree | 0827486e09b938965eeb4787eb62f073c7382527 /tests/testnotebookdnd.c | |
parent | bc4c32505ac2a6c87097a45c372bf1ad1454f865 (diff) | |
download | gtk+-1bffccd583443734bbc8540b3a395623a28a5fd8.tar.gz |
testnotebookdnd: quit when the toplevel gets closed
Diffstat (limited to 'tests/testnotebookdnd.c')
-rw-r--r-- | tests/testnotebookdnd.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/testnotebookdnd.c b/tests/testnotebookdnd.c index a9b1bac29c..e40793fb8f 100644 --- a/tests/testnotebookdnd.c +++ b/tests/testnotebookdnd.c @@ -347,6 +347,9 @@ main (gint argc, gchar *argv[]) gtk_container_add (GTK_CONTAINER (window), grid); gtk_window_set_default_size (GTK_WINDOW (window), 400, 400); + + g_signal_connect (window, "delete-event", G_CALLBACK (gtk_main_quit), NULL); + gtk_widget_show (window); gtk_main (); |