[maemo-developers] How to override load_desktop_file in hildon home plugins?

From: Graham Cobb g+770 at cobb.uk.net
Date: Wed Feb 10 11:51:25 EET 2010
On Wednesday 10 February 2010 06:15:02 Ville M. Vainio wrote:
> On Wed, Feb 10, 2010 at 7:56 AM, Ville M. Vainio <vivainio at gmail.com> wrote:
> > This way, my proxy_home_plugin_item_load_desktop_file() function gets
> > called. But indeed it
> > appears this is not working fine for unloading & loading.
>
> More details (from looking at the crash in hildon-home):
>
> 6319]: GLIB WARNING ** GLib-GObject - cannot add interface type
> `HDPluginItem' to type `Pr
> oxyHomePlugin', since type `ProxyHomePlugin' already conforms to interface

Are you sure that your dynamic type is being completely destroyed when you 
unload?  I don't remember the details but I did spend some time trying to get 
a plugin with a dynamic type to handle unloading and reloading and eventually 
convinced myself it was impossible and decided just to prevent unloading 
instead.

I don't know much about GType but it seems that even dynamic types are not 
designed to support unloading code.

Graham
More information about the maemo-developers mailing list