[gtk-engines] Destroy toplevel widget.
- From: Benjamin Berg <bberg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk-engines] Destroy toplevel widget.
- Date: Fri, 1 Oct 2010 19:09:30 +0000 (UTC)
commit 6c4664ea2604d08ead58b8b59065d549e99eef23
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 a024cc9..6b7ce4c 100644
--- a/test/torturetest.c
+++ b/test/torturetest.c
@@ -668,12 +668,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]