[maemo-developers] [maemo-developers] Using osso-browser-interface

From: mp s mapes__ at hotmail.com
Date: Thu Jan 12 13:39:50 EET 2006
>From: Devesh Kothari <devesh.kothari at nokia.com>
>To: ext maukka maukkanen <mapes__ at hotmail.com>
>CC: maemo-developers at maemo.org
>Subject: Re: [maemo-developers] Using osso-browser-interface
>Date: Thu, 12 Jan 2006 12:29:30 +0200
>
>ext maukka maukkanen wrote:
>
> > Hi
> >
> > Anyone having experience in using osso-browser interface? I've spent
> > some time trying to launch browser in embedded mode from hildonapp but
> > all I'm able to launch is "Web loading" notification and then nothing.
> > See the code snipplet below:
> >
> > 
><-------------------------------------------------------------------------------->
> >
> >  osso_return_t ret;
> >  hildon_app_set_appview ( data->app, data->browser_view );
> >  hildon_app_notify_view_changed( data->app, data->browser_view );
> >  ret =osso_rpc_run_with_defaults(data->osso,
> > "osso_browser","plug_new_window", NULL,
> >                 DBUS_TYPE_UINT32,
> > hildon_app_find_view_id(data->app,data->browser_view),
> >           DBUS_TYPE_STRING, 
>"file://localhost/media/mmc1/test_page.html",
> >                     DBUS_TYPE_STRING, NULL,
> >           DBUS_TYPE_BOOLEAN, TRUE,
> >                     DBUS_TYPE_BOOLEAN, FALSE,
> >           DBUS_TYPE_STRING,
> > "com.nokia.osso_browser",
> > DBUS_TYPE_INVALID);
> >  if (ret != OSSO_OK) {
> >          gtk_infoprint(GTK_WINDOW(data->app), "Browser launch failed");
> >     }
> >
> > <---------------------------------------------------------------------->
> >
> > Something is going therribly wrong but I have no idea whatsoever about
> > the error:( I'd also be interested in knowing if videoplayer has
> > similar interface available.
> >
> > Thanx,
> > -mp
> >
> > _________________________________________________________________
> > Don't just search. Find. Check out the new MSN Search!
> > http://search.msn.click-url.com/go/onm00200636ave/direct/01/
> >
> > _______________________________________________
> > maemo-developers mailing list
> > maemo-developers at maemo.org
> > https://maemo.org/mailman/listinfo/maemo-developers
>
>I am not so sure about the URL I always get confused by the number of
>slashes etc maybe that is something you can try playing with ;)
>
>Devesh
>

Thanks for the answer! Yep, the url can be wrong but I've tried with
the url "/media/mmc1/test_page.html" too which works fine when
launching normal browser window through interface. I'm starting to
wonder if that embedded part is working at all... Well maybe it works
but I just don't know how to use it:(

I recently read that somebody was asking almost the same thing on
this list. Practically the only parameter that can go wrong is window_id.
I currently pass the HildonAppView id as window_id but should i pass
the HildonApp's GtkWindow id instead? And if so how to do this in
practise?

Br,
mp

_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE! 
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/


More information about the maemo-developers mailing list