MidoriBrowser* browser)
{
GtkWidget* scrolled = gtk_widget_get_parent (GTK_WIDGET (inspector_view));
+ GtkWidget* paned = gtk_widget_get_parent (scrolled);
browser->inspector_view = gtk_viewport_new (NULL, NULL);
gtk_container_remove (GTK_CONTAINER (scrolled), GTK_WIDGET (inspector_view));
gtk_container_add (GTK_CONTAINER (scrolled), browser->inspector_view);
+ gtk_widget_hide (paned);
}
static void
GtkWidget* scrolled = gtk_widget_get_parent (GTK_WIDGET (inspector_view));
if (!scrolled)
return FALSE;
- gtk_widget_destroy (gtk_widget_get_parent (scrolled));
+ gtk_widget_hide (gtk_widget_get_parent (scrolled));
return TRUE;
}