]> spindle.queued.net Git - midori/commitdiff
Use URI instead of the view itself to open tabs in new windows
authorChristian Dywan <christian@twotoasts.de>
Mon, 22 Jun 2009 22:09:24 +0000 (00:09 +0200)
committerChristian Dywan <christian@twotoasts.de>
Mon, 22 Jun 2009 22:10:12 +0000 (00:10 +0200)
extensions/tab-panel.c

index 6f85332ce524c8c3d4feb0dc6c555eccaa627594..45df6d5ead7e1a87f8ab5b1ba300f3a1ff167929 100644 (file)
@@ -149,7 +149,8 @@ midori_extension_open_in_window_activate_cb (GtkWidget*       menuitem,
     new_browser = midori_app_create_browser (midori_extension_get_app (extension));
     midori_app_add_browser (midori_extension_get_app (extension), new_browser);
     gtk_widget_show (GTK_WIDGET (new_browser));
-    midori_browser_add_tab (new_browser, view);
+    midori_browser_add_uri (new_browser,
+        midori_view_get_display_uri (MIDORI_VIEW (view)));
 }
 
 static void