On Mon, 2007-09-17 at 21:15 +0100, ext David Hazel wrote:
> Within my application, I am trying to bring the browser to the front
> in response to a certain user action. The call I am using is:
>  
> osso_application_top(mvarAppCtx, "osso_browser", NULL);
>  
> However, nothing is happening in response to this call. My application
> remains visible, and the browser does not come to the front of the
> display. The question is, am I using the above call correctly (in
> particular, is the application name correct for the browser)? Are
> there any restrictions on the circumstances where I can expect this
> call to bring another application in front of mine?

This works for me:

-----
#include <stdio.h>
#include <glib.h>
#include <libosso.h>

static GMainLoop *loop;

int main(int argc, char* argv[])
{
        osso_context_t *context;

        loop = g_main_loop_new(NULL, 1);
        context = osso_initialize("toptest", "0.1", 0,
                                  g_main_loop_get_context(loop));

        osso_application_top(context, "osso_browser", NULL);

        g_main_loop_run(loop);
        return 0;
}
------

BR, Kimmo

>  
>  
> David Hazel
> _______________________________________________
> maemo-developers mailing list
> maemo-developers@maemo.org
> https://lists.maemo.org/mailman/listinfo/maemo-developers
_______________________________________________
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers

Reply via email to