[gnome-control-center/wip/animated-notebook] shell: Exit test when closed



commit d0bc21ab417268c18093fcdcfeebd1f59ac534c4
Author: Bastien Nocera <hadess hadess net>
Date:   Tue May 1 14:11:32 2012 +0100

    shell: Exit test when closed

 shell/test-notebook.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/shell/test-notebook.c b/shell/test-notebook.c
index 59ac151..aac5b80 100644
--- a/shell/test-notebook.c
+++ b/shell/test-notebook.c
@@ -12,6 +12,7 @@ int main (int argc, char **argv)
 	}
 
 	window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
+	g_signal_connect (window, "destroy", G_CALLBACK (gtk_main_quit), NULL);
 	gtk_window_resize (GTK_WINDOW (window), 500, 500);
 
 	notebook = cc_notebook_new ();



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]