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.
This commit is contained in:
Tristan Van Berkom
2011-01-04 00:55:04 +09:00
parent b8c8f2ccb1
commit a28295a742
2 changed files with 7 additions and 11 deletions

View File

@ -9,6 +9,7 @@ remove_notebook_page (GtkWidget *button,
GtkWidget *toplevel)
{
gtk_container_remove (GTK_CONTAINER (notebook), toplevel);
gtk_widget_show (toplevel);
}
GtkWidget *