Happy new year everyone!

While i was playing with eweather, i found out that when its gadget
is removed and module is unloaded, configuration gets lost.
At first i thought that this issue is specific to eweather and
that's some stupid bug, that went unnoticed.
But it looks like configs are handled this way intentionally.
If some gadget can have multiple instances, every instance gets
its own id. When user adds a new instance, NULL is passed to
_gc_init() as id. The same happens, if user unloaded a module in the
past for some reason, then changed his mind and loaded the module once
again. And you may expect that the last configuration is loaded in
this case, but NO... id gets incremented and you'll get the default
settings. That's very strange -- configurations are stored and never
reused again.
That doesn't feel like an expected behaviour to me. I would
expect GADCON_CLIENT_CONFIG_GET() to load the last available
configuration if id is NULL. Or maybe even last id but one when the
gadget that has the last id already exists. So some smart solution
may be required to fix the issue. Any ideas?


-- Igor

------------------------------------------------------------------------------
Master SQL Server Development, Administration, T-SQL, SSAS, SSIS, SSRS
and more. Get SQL Server skills now (including 2012) with LearnDevNow -
200+ hours of step-by-step video tutorials by Microsoft MVPs and experts.
SALE $99.99 this month only - learn more at:
http://p.sf.net/sfu/learnmore_122512
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to