[gtk+/wip/baedert/drawing: 275/359] testnotebookdnd: quit when the toplevel gets closed
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/baedert/drawing: 275/359] testnotebookdnd: quit when the toplevel gets closed
- Date: Thu, 13 Jul 2017 14:50:54 +0000 (UTC)
commit 8b338d6e9f618780ce560c570df48c4cc0e1182c
Author: Timm Bäder <mail baedert org>
Date: Fri Jun 23 20:33:52 2017 +0200
testnotebookdnd: quit when the toplevel gets closed
tests/testnotebookdnd.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/tests/testnotebookdnd.c b/tests/testnotebookdnd.c
index a9b1bac..e40793f 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 ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]