Pass the correct parent in the web-view-ready callback

This was overlooked when changing the packing of the view.
This commit is contained in:
Christian Dywan 2010-04-02 19:14:22 +02:00
parent f2f0f16dd2
commit 476f64e9bc

View file

@ -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