[Xfce4-commits] <midori:master> Fallback for opening new windows in app mode

Christian Dywan noreply at xfce.org
Sun Oct 24 21:08:05 CEST 2010


Updating branch refs/heads/master
         to b915e45332d94b8eb6ed033fb3acfa4b414c8544 (commit)
       from 6cdc0261e94ff8b4ad9487e75518baa98642d027 (commit)

commit b915e45332d94b8eb6ed033fb3acfa4b414c8544
Author: Christian Dywan <christian at twotoasts.de>
Date:   Sun Oct 24 20:33:38 2010 +0200

    Fallback for opening new windows in app mode
    
    This is not quite enough, inheriting config won't
    work, but better than nothing at all.

 midori/midori-browser.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/midori/midori-browser.c b/midori/midori-browser.c
index 6c0a7ad..21e662d 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



More information about the Xfce4-commits mailing list