[gtk-engines/gtk-engines-2-20] Destroy toplevel widget.



commit 46d50c74ccedb18a648731d8c8d27fa077521f72
Author: Benjamin Berg <benjamin sipsolutions net>
Date:   Fri Oct 1 19:56:40 2010 +0200

    Destroy toplevel widget.

 test/torturetest.c |   15 ++++++++++++++-
 1 files changed, 14 insertions(+), 1 deletions(-)
---
diff --git a/test/torturetest.c b/test/torturetest.c
index 1357120..f9e713f 100644
--- a/test/torturetest.c
+++ b/test/torturetest.c
@@ -707,12 +707,25 @@ main (int argc, char **argv)
 	 * and destruction of all engine objects. */
         gtk_rc_set_default_files (new_default_files);
 	gtk_rc_reparse_all_for_settings (settings, TRUE);
-	
+
+	gtk_widget_hide (window);
+	gtk_widget_unmap (window);
+
+	while (gdk_events_pending ())
+		gtk_main_iteration_do (FALSE);
+
+	gtk_widget_destroy (window);
+
 	while (gdk_events_pending ())
 		gtk_main_iteration_do (FALSE);
 
 	/* TODO: It would be really cool to check if there is no
 	 * loaded engine at this point. */
 
+	/*
+	 * HRM: Calling the follwing causes an assertion failure inside cairo here -- 01.10.2010, Benjamin
+	cairo_debug_reset_static_data ();
+	*/
+
 	return 0;
 }



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