From dafa435e47f859dd52d40bbae0b98770b665786f Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Sat, 25 Apr 2009 23:33:09 +0200 Subject: [PATCH] Switch the current panel after detaching a panel --- midori/midori-panel.c | 1 + 1 file changed, 1 insertion(+) diff --git a/midori/midori-panel.c b/midori/midori-panel.c index 988e598a..71da1cb0 100644 --- a/midori/midori-panel.c +++ b/midori/midori-panel.c @@ -253,6 +253,7 @@ midori_panel_button_detach_clicked_cb (GtkWidget* toolbutton, gtk_container_remove (GTK_CONTAINER (panel->notebook), scrolled); gtk_box_pack_start (GTK_BOX (vbox), scrolled, TRUE, TRUE, 0); g_object_unref (scrolled); + midori_panel_set_current_page (panel, n); if (!gtk_notebook_get_n_pages (GTK_NOTEBOOK (panel->notebook))) gtk_widget_set_sensitive (toolbutton, FALSE); g_signal_connect (window, "delete-event",