diff options
author | Tristan Van Berkom <tristan.van.berkom@gmail.com> | 2011-01-04 00:55:04 +0900 |
---|---|---|
committer | Tristan Van Berkom <tristan.van.berkom@gmail.com> | 2011-01-06 14:39:41 +0900 |
commit | a28295a742d6492a03c92413e3570724406ca3e1 (patch) | |
tree | 03bccabead4aed51be445bdfaa3df8951e5494d6 /tests/testtoplevelembed.c | |
parent | b8c8f2ccb1a1b69514bf86c02f223b5f8482e457 (diff) | |
download | gtk+-a28295a742d6492a03c92413e3570724406ca3e1.tar.gz |
Dont show the GtkWindow when removing it from a parent and becomming a toplevel
Showing the window causes it to try to grab focus, this causes problems
when embedded toplevels run through dispose cycles.
Diffstat (limited to 'tests/testtoplevelembed.c')
-rw-r--r-- | tests/testtoplevelembed.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/testtoplevelembed.c b/tests/testtoplevelembed.c index 12a79b2a42..c698252acb 100644 --- a/tests/testtoplevelembed.c +++ b/tests/testtoplevelembed.c @@ -9,6 +9,7 @@ remove_notebook_page (GtkWidget *button, GtkWidget *toplevel) { gtk_container_remove (GTK_CONTAINER (notebook), toplevel); + gtk_widget_show (toplevel); } GtkWidget * |