[gtk+] tests: Exit test when main window is closed
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] tests: Exit test when main window is closed
- Date: Thu, 9 Oct 2014 22:27:54 +0000 (UTC)
commit f46c31f2fbe80ad210b81b8540df80aaa7a2319d
Author: Benjamin Otte <otte redhat com>
Date: Fri Oct 10 00:08:02 2014 +0200
tests: Exit test when main window is closed
tests/animated-revealing.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/tests/animated-revealing.c b/tests/animated-revealing.c
index 2040824..8b4ca87 100644
--- a/tests/animated-revealing.c
+++ b/tests/animated-revealing.c
@@ -38,6 +38,7 @@ main(int argc, char **argv)
}
window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
+ g_signal_connect (window, "destroy", gtk_main_quit, NULL);
frame_stats_ensure (GTK_WINDOW (window));
revealer = gtk_revealer_new ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]