Apply URI magic to externally opened addresses
This commit is contained in:
parent
85f2386279
commit
22ded9a981
1 changed files with 5 additions and 2 deletions
|
@ -14,6 +14,7 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "midori-app.h"
|
#include "midori-app.h"
|
||||||
|
#include "sokoke.h"
|
||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <gtk/gtk.h>
|
#include <gtk/gtk.h>
|
||||||
|
@ -385,14 +386,16 @@ midori_browser_message_received_cb (UniqueApp* instance,
|
||||||
first = (open_external_pages_in == MIDORI_NEW_PAGE_CURRENT);
|
first = (open_external_pages_in == MIDORI_NEW_PAGE_CURRENT);
|
||||||
while (*uris)
|
while (*uris)
|
||||||
{
|
{
|
||||||
|
gchar* fixed_uri = sokoke_magic_uri (*uris, NULL);
|
||||||
if (first)
|
if (first)
|
||||||
{
|
{
|
||||||
midori_browser_set_current_uri (browser, *uris);
|
midori_browser_set_current_uri (browser, fixed_uri);
|
||||||
first = FALSE;
|
first = FALSE;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
midori_browser_set_current_page (browser,
|
midori_browser_set_current_page (browser,
|
||||||
midori_browser_add_uri (browser, *uris));
|
midori_browser_add_uri (browser, fixed_uri));
|
||||||
|
g_free (fixed_uri);
|
||||||
uris++;
|
uris++;
|
||||||
}
|
}
|
||||||
/* g_strfreev (uris); */
|
/* g_strfreev (uris); */
|
||||||
|
|
Loading…
Reference in a new issue