[gtk-engines/gtk-engines-2-22] Destroy toplevel widget.
- From: Benjamin Berg <bberg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk-engines/gtk-engines-2-22] Destroy toplevel widget.
- Date: Fri, 1 Oct 2010 19:06:30 +0000 (UTC)
commit aa73b2eaf39e2110109c7b3238b6ed6b2d515545
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]