From 1b8de1588f854947e5c066ea4afd4b05b410468a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thorsten=20M=C3=BChlfelder?= Date: Sun, 12 Apr 2009 22:44:11 +0200 Subject: [PATCH] Apply URI magic to externally opened addresses --- midori/midori-app.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/midori/midori-app.c b/midori/midori-app.c index 27fbe87a..b753a64f 100644 --- a/midori/midori-app.c +++ b/midori/midori-app.c @@ -14,6 +14,7 @@ #endif #include "midori-app.h" +#include "sokoke.h" #include #include @@ -385,14 +386,16 @@ midori_browser_message_received_cb (UniqueApp* instance, first = (open_external_pages_in == MIDORI_NEW_PAGE_CURRENT); while (*uris) { + gchar* fixed_uri = sokoke_magic_uri (*uris, NULL); if (first) { - midori_browser_set_current_uri (browser, *uris); + midori_browser_set_current_uri (browser, fixed_uri); first = FALSE; } else midori_browser_set_current_page (browser, - midori_browser_add_uri (browser, *uris)); + midori_browser_add_uri (browser, fixed_uri)); + g_free (fixed_uri); uris++; } /* g_strfreev (uris); */