From 476f64e9bcfcdfdc04c28663ee25bde898ecb7a6 Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Fri, 2 Apr 2010 19:14:22 +0200 Subject: [PATCH] Pass the correct parent in the web-view-ready callback This was overlooked when changing the packing of the view. --- midori/midori-view.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/midori/midori-view.c b/midori/midori-view.c index 6c8fd0d3..0837daf1 100644 --- a/midori/midori-view.c +++ b/midori/midori-view.c @@ -2462,7 +2462,7 @@ static gboolean webkit_web_view_web_view_ready_cb (GtkWidget* web_view, MidoriView* view) { - GtkWidget* new_view = gtk_widget_get_parent (web_view); + GtkWidget* new_view = gtk_widget_get_parent (gtk_widget_get_parent (web_view)); MidoriNewView where = MIDORI_NEW_VIEW_TAB; /* FIXME: Open windows opened by scripts in tabs if they otherwise -- 2.39.5