[maemo-developers] home plugin osso initialization

From: Johan Bilien jobi at via.ecp.fr
Date: Sat Sep 15 15:29:51 EEST 2007
On Fri, Sep 14, 2007, Bill Filler wrote:
> I've written a home plugin that wants to use libosso calls. Does it  
> need to explicitly initialize osso (via osso_initialize()) or should  
> it use the osso_context_t from hd-desktop or hd-wm? If the later, how  
> does it get the osso context? Thanks for any help.

There is no API for this as the plugins used in maemo usually call
osso_initialize themselves. Once your plugin is added to the home area
you could access the osso_context_t used by home with

window = gtk_widget_get_toplevel (your_applet);
g_object_get (window,
              "osso-context", &osso_context,
              NULL);

but it's a bit hackish.
-- 
Johan Bilien
<jobi at via.ecp.fr>

More information about the maemo-developers mailing list