From: Christian Dywan Date: Sun, 24 Oct 2010 18:33:38 +0000 (+0200) Subject: Fallback for opening new windows in app mode X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b915e45332d94b8eb6ed033fb3acfa4b414c8544;p=midori Fallback for opening new windows in app mode This is not quite enough, inheriting config won't work, but better than nothing at all. --- diff --git a/midori/midori-browser.c b/midori/midori-browser.c index 6c0a7ada..21e662d7 100644 --- a/midori/midori-browser.c +++ b/midori/midori-browser.c @@ -1397,7 +1397,10 @@ midori_view_new_window_cb (GtkWidget* view, { MidoriBrowser* new_browser; g_signal_emit (browser, signals[NEW_WINDOW], 0, NULL, &new_browser); - midori_browser_add_uri (new_browser, uri); + if (new_browser) + midori_browser_add_uri (new_browser, uri); + else /* No MidoriApp, so this is app or private mode */ + sokoke_spawn_app (uri, TRUE); } static void