[maemo-developers] Debugging applet causing hildon-home crash

From: Graham Cobb g+770 at cobb.uk.net
Date: Sun Jan 10 21:50:20 EET 2010
On Saturday 09 January 2010 14:06:42 Jan Arne Petersen wrote:
> Hi,
> On 01/09/2010 02:52 PM, Graham Cobb wrote:
> > As there is no way (that I am aware of) for GTypes to be unregistered, or
> > to be reregistered, is there some way for me to stop hildon-home actually
> > unmapping my code? At least that would mean that the plugin could be
> > re-added to the desktop, although no newer version would be usable until
> > a reboot.
> You could define a g_module_check_init like this:
> const gchar *
> g_module_check_init (GModule *module)
> {
>      g_module_make_resident(module);
>      return NULL;
> }
> to prevent the module of being unloaded (see
> http://maemo.org/api_refs/5.0/5.0-final/glib/glib-Dynamic-Loading-of-Module

Thanks very much -- that works and fixes my problems (along with, of course, 
many other bug fixes to cope with the widget being destroyed and then 
recreated again!).

I will update the documentation bug report to say the docs should mention this 
(at the very least they need to say that the Glib dynamic module loading 
mechanism is being used).

Now to try to work out why my widget cannot receive any click events but other 
widgets can!

More information about the maemo-developers mailing list