GtkWidget* offscreen = gtk_offscreen_window_new ();
#endif
gchar* msg = NULL;
- GtkWidget* view = midori_view_new_with_title (NULL, settings, FALSE);
+ GtkWidget* view = midori_view_new_with_item (NULL, settings);
g_object_set (settings, "open-new-pages-in", MIDORI_NEW_PAGE_WINDOW, NULL);
midori_browser_add_tab (browser, view);
#if 0 /* HAVE_OFFSCREEN */
source_uri = g_filename_to_uri (filename, NULL, NULL);
g_free (filename);
- source = midori_view_new_with_title (NULL, browser->settings, FALSE);
+ source = midori_view_new_with_item (NULL, browser->settings);
source_view = midori_view_get_web_view (MIDORI_VIEW (source));
webkit_web_view_set_view_source_mode (WEBKIT_WEB_VIEW (source_view), TRUE);
webkit_web_view_load_uri (WEBKIT_WEB_VIEW (source_view), source_uri);
{
GtkWidget* view = midori_browser_get_current_tab (browser);
MidoriNewView where = MIDORI_NEW_VIEW_TAB;
- GtkWidget* new_view = midori_view_new_with_title (
- NULL, browser->settings, FALSE);
+ GtkWidget* new_view = midori_view_new_with_item (
+ midori_view_get_proxy_item (MIDORI_VIEW (view)), browser->settings);
const gchar* uri = midori_view_get_display_uri (MIDORI_VIEW (view));
g_signal_emit_by_name (view, "new-view", new_view, where, TRUE);
midori_view_set_uri (MIDORI_VIEW (new_view), uri);
new_view = view;
else
{
- new_view = (MidoriView*)midori_view_new_with_title (NULL,
- view->settings, FALSE);
+ new_view = (MidoriView*)midori_view_new_with_item (NULL, view->settings);
g_signal_connect (new_view->web_view, "web-view-ready",
G_CALLBACK (webkit_web_view_web_view_ready_cb), view);
}
*
* Return value: a new #MidoriView
*
- * Deprecated: 0.2.8: Use midori_view_new_with_title() instead.
+ * Deprecated: 0.2.8: Use midori_view_new_with_item() instead.
**/
GtkWidget*
midori_view_new (KatzeNet* net)
* Return value: a new #MidoriView
*
* Since: 0.3.0
+ * Deprecated: 0.4.3
**/
GtkWidget*
midori_view_new_with_title (const gchar* title,
MidoriView* view)
{
MidoriNewView where = MIDORI_NEW_VIEW_TAB;
- GtkWidget* new_view = midori_view_new_with_title (
- NULL, view->settings, FALSE);
- const gchar* uri = midori_view_get_display_uri (MIDORI_VIEW (view));
+ GtkWidget* new_view = midori_view_new_with_item (view->item, view->settings);
g_signal_emit (view, signals[NEW_VIEW], 0, new_view, where, TRUE);
- midori_view_set_uri (MIDORI_VIEW (new_view), uri);
+ midori_view_set_uri (MIDORI_VIEW (new_view), view->uri);
}
static void