[Xfce4-commits] <midori:master> Load about:blank in private window if URI is empty
Christian Dywan
noreply at xfce.org
Tue Feb 2 22:32:01 CET 2010
Updating branch refs/heads/master
to b4a414f3717faca39be65343035bf944b83ec9fe (commit)
from ce43fb3c03b72547eca6104362b90c60ab1d4cfb (commit)
commit b4a414f3717faca39be65343035bf944b83ec9fe
Author: Christian Dywan <christian at twotoasts.de>
Date: Tue Feb 2 22:29:31 2010 +0100
Load about:blank in private window if URI is empty
midori/midori-browser.c | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/midori/midori-browser.c b/midori/midori-browser.c
index 779ab4c..0bca342 100644
--- a/midori/midori-browser.c
+++ b/midori/midori-browser.c
@@ -2176,8 +2176,13 @@ _action_private_browsing_activate (GtkAction* action,
{
const gchar* uri = midori_browser_get_current_uri (browser);
if (uri != NULL)
+ {
/* FIXME: Use the same binary that is running right now */
- sokoke_spawn_program ("midori -a", uri, FALSE);
+ if (*uri != '\0')
+ sokoke_spawn_program ("midori -a", uri, FALSE);
+ else
+ sokoke_spawn_program ("midori -a", "about:blank", FALSE);
+ }
}
static void
More information about the Xfce4-commits
mailing list