From: Steven Luo Date: Wed, 8 Sep 2010 06:34:31 +0000 (-0700) Subject: Fremantle: Use open_new_window instead of load_url when passing URL to MicroB X-Git-Tag: fremantle-package-3.3-1fremantle2~2 X-Git-Url: http://git.maemo.org/git/?p=browser-switch;a=commitdiff_plain;h=878f7b05117d3fa8de6c0f295cd34801b1392a2c;hp=4384773118be07e25af07a37c3601d132ac7a338 Fremantle: Use open_new_window instead of load_url when passing URL to MicroB With the changes to MicroB launching for Fremantle, there are now cases where we are passing a D-Bus request to a MicroB process with windows open, instead of just asking for a browser session to be started. In the latter case, load_url and open_new_window are equivalent, but in the former, they are not -- load_url loads the URL in an existing browser window. Fully emulating MicroB's behavior here now requires keeping track of whether the request we got was load_url or open_new_window and requesting the same of MicroB, but for now, do what most users want and what we do with other browsers -- always open a new window for the URL. --- diff --git a/launcher.c b/launcher.c index f42e999..7a3c8c1 100644 --- a/launcher.c +++ b/launcher.c @@ -321,7 +321,7 @@ int launch_microb_open_window(struct swb_context *ctx, char *uri, uri = "about:blank"; } } - if (!dbus_g_proxy_call(g_proxy, "load_url", + if (!dbus_g_proxy_call(g_proxy, "open_new_window", &gerror, G_TYPE_STRING, uri, G_TYPE_INVALID,