Some good news and bad news.
The good ones:
The applet API for lxpanel2 is roughly finished.
Now it's possible to build a dynamic applet module outside lxpanel2 source tree.
Later I'll push some sample code to git.
Porting of old applets to the new panel should be easy.
Developing new ones should not be difficult, either.
The bad news is from the gtk+ developers:
They decided to remove dynamic type support in the near future. See:
That means, if you register an object type in your lodable module,
you'll not be able to unload it unless you restart your program.
I tried hard to support type module in lxpanel2 to ensure applets
registering new types can be safely unloaded and reloaded on demand.
Now gtk guys are removing the feature we're using, again. :-(
So, I need to rework this part again. sigh...
Plus, in the future, the applet modules cannot be unloaded to save
memory when they're not in use once they've been loaded.
Ironically, Qt never has this kind of constraint and is becoming more
and more flexible.
Too bad. :-(
I need to find some workaround again.