[gtk+] testcenterbox: Properly quit on window close
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] testcenterbox: Properly quit on window close
- Date: Sun, 3 Sep 2017 07:21:12 +0000 (UTC)
commit 98281bc60acbe9fb92b66af8d51577f138be7fac
Author: Timm Bäder <mail baedert org>
Date: Fri Sep 1 19:35:30 2017 +0200
testcenterbox: Properly quit on window close
tests/testcenterbox.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/tests/testcenterbox.c b/tests/testcenterbox.c
index 151d6bf..9d05d18 100644
--- a/tests/testcenterbox.c
+++ b/tests/testcenterbox.c
@@ -28,6 +28,8 @@ main (int argc, char *argv[])
gtk_label_set_ellipsize (GTK_LABEL (child), PANGO_ELLIPSIZE_END);
gtk_center_box_set_end_widget (GTK_CENTER_BOX (box), child);
+ 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]