Make startup notification work for MicroB menu entry
[browser-switch] / dbus-server-bindings.c
index 9c4d6cd..e3d2c4f 100644 (file)
@@ -127,13 +127,23 @@ gboolean osso_browser_top_application(OssoBrowser *obj,
                GError **error) {
        if (!ctx.continuous_mode)
                ignore_reconfig_requests();
                GError **error) {
        if (!ctx.continuous_mode)
                ignore_reconfig_requests();
+       launch_browser(&ctx, "new_window");
+       return TRUE;
+}
+
+
+/*
+ * The org.maemo.garage.browser_switchboard D-Bus interface
+ */
+gboolean switchboard_top_application(OssoBrowser *obj,
+               GError **error) {
+       if (!ctx.continuous_mode)
+               ignore_reconfig_requests();
        launch_microb(&ctx, "new_window");
        return TRUE;
 }
 
        launch_microb(&ctx, "new_window");
        return TRUE;
 }
 
-/* This is a "undocumented", non-standard extension to the API, ONLY
-   for use by /usr/bin/browser wrapper to implement --url */
-gboolean osso_browser_switchboard_launch_microb(OssoBrowser *obj,
+gboolean switchboard_launch_microb(OssoBrowser *obj,
                const char *uri, GError **error) {
        if (!ctx.continuous_mode)
                ignore_reconfig_requests();
                const char *uri, GError **error) {
        if (!ctx.continuous_mode)
                ignore_reconfig_requests();