]> spindle.queued.net Git - midori/commitdiff
Pass the correct parent in the web-view-ready callback
authorChristian Dywan <christian@twotoasts.de>
Fri, 2 Apr 2010 17:14:22 +0000 (19:14 +0200)
committerChristian Dywan <christian@twotoasts.de>
Fri, 2 Apr 2010 17:14:22 +0000 (19:14 +0200)
This was overlooked when changing the packing of the view.

midori/midori-view.c

index 6c8fd0d314666bfb5bf67ab420f2e5cf5a4f0088..0837daf1bc3ef5fb4f10c57fa2692a32bc18917b 100644 (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