From: Christian Dywan Date: Sat, 22 Mar 2008 22:20:22 +0000 (+0100) Subject: Destroy the tab, not only the web view X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e9710d3b3be74f50c97a8f059150ae99fa4579cc;p=midori Destroy the tab, not only the web view --- diff --git a/src/midori-browser.c b/src/midori-browser.c index 97d36e95..ea7652b2 100644 --- a/src/midori-browser.c +++ b/src/midori-browser.c @@ -603,8 +603,9 @@ static void _action_tab_close_activate (GtkAction* action, MidoriBrowser* browser) { - GtkWidget* web_view = midori_browser_get_current_web_view (browser); - gtk_widget_destroy (web_view); + GtkWidget* widget = midori_browser_get_current_page (browser); + GtkWidget* scrolled = _midori_browser_scrolled_for_child (browser, widget); + gtk_widget_destroy (scrolled); } static void @@ -2683,7 +2684,7 @@ midori_browser_set_property (GObject* object, katze_object_assign (priv->settings, g_value_get_object (value)); g_object_ref (priv->settings); gtk_container_foreach (GTK_CONTAINER (priv->notebook), - (GtkCallback*) midori_web_view_set_settings, + (GtkCallback) midori_web_view_set_settings, priv->settings); break; case PROP_TRASH: