Fremantle: Use open_new_window instead of load_url when passing URL to MicroB
[browser-switch] / launcher.c
index 5a7c773..7a3c8c1 100644 (file)
@@ -226,6 +226,8 @@ void microb_start_dbus_watch_remove(DBusConnection *conn) {
        DBusError dbus_error;
        DBusHandleMessageFunction filter_func = check_microb_started;
 
+       dbus_error_init(&dbus_error);
+
        dbus_connection_remove_filter(conn, filter_func, NULL);
        dbus_bus_remove_match(conn,
                              "type='signal',interface='org.freedesktop.DBus',member='NameOwnerChanged',arg0='com.nokia.osso_browser'",
@@ -319,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,