[Panel-devel] Applet updating

Petri Damsten petri.damsten at iki.fi
Sun Sep 16 21:15:36 CEST 2007


On Sunday 16 September 2007 20:19:36 Aaron J. Seigo wrote:
> right; so this would be for buggy engines that don't create the source in
> sourceRequested. the engine should be fixed in this case (to return false,
> or create the source). working around that bug in a given engine would mean
> that we'd be breaking the internal semantics of DataEngine (that
> sourceRequested is where the source gets created on demand, if at all).
>
> for now, i'd prefer to leave it the way it is.

OK. Still feels a little confusing to me. DataEngines like TimeEngine 
don't 'create' source just call setData and there doesn't seem to be function 
to just create one if you don't have data (other than calling setData with 
some empty values)

> does the attached patch work for you? (i can't test right now as my
> libplasma is not in a compilable state atm)

Seems to work. Should I commit this with the #4 of the original diff.

Petri

-- 
"C is quirky, flawed, and an enormous success."    - Dennis M. Ritchie.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : http://mail.kde.org/pipermail/panel-devel/attachments/20070916/27abd115/attachment.pgp 


More information about the Panel-devel mailing list