This fixes a crash due to change of the signal signature.
if (uri && *uri)
{
- MidoriBrowser* browser = midori_browser_get_for_widget (GTK_WIDGET (bookmarks));
- g_signal_emit_by_name (browser, "new-window", uri);
+ MidoriBrowser* new_browser = midori_app_create_browser (bookmarks->app);
+ midori_app_add_browser (bookmarks->app, new_browser);
+ gtk_widget_show (GTK_WIDGET (new_browser));
+ midori_browser_add_uri (new_browser, uri);
}
}
if (uri && *uri)
{
- MidoriBrowser* browser = midori_browser_get_for_widget (GTK_WIDGET (history));
- g_signal_emit_by_name (browser, "new-window", uri);
+ MidoriBrowser* new_browser = midori_app_create_browser (history->app);
+ midori_app_add_browser (history->app, new_browser);
+ gtk_widget_show (GTK_WIDGET (new_browser));
+ midori_browser_add_uri (new_browser, uri);
}
}