From: Christian Dywan Date: Fri, 2 Apr 2010 17:14:22 +0000 (+0200) Subject: Pass the correct parent in the web-view-ready callback X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=476f64e9bcfcdfdc04c28663ee25bde898ecb7a6;p=midori Pass the correct parent in the web-view-ready callback This was overlooked when changing the packing of the view. --- 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