2008/9/11 Aaron J. Seigo <[EMAIL PROTECTED]> > On Thursday 11 September 2008, Richard Dale wrote: > > 2008/9/11 Petri Damstén <[EMAIL PROTECTED]> > > > > > Hi, > > > > > > I have been playing with webkit AppletScript. There is a small example > > > (webkit/code/test.html) using plasma dataengines so I have added more > > > functions (init(), engine.connectSource(), etc.) and plasma package > > > support so > > > it looks more like a normal plasma applet. > > > > > > Applets connect to apply & ok to know when user accepted config, but if > > > AppletScript uses configxml there seems to be no way to do that? Maybe > > > configAccepted signal in applet? I guess this could be good for Applets > > > too so > > > they don't have to rely parent to have ok/apply. > > > > The biggest problem with using configxml with script engine based applets > > is in this code where it tests 'if (d->script) {' and then leaves early. > > after checking if there is a configXml object, yes. > > > I've no idea what script engine applets would want to do that is > different > > from a normal applet as the whole point of configxml is that it is a sort > > of 'fire and forget' api that doesn't actually need any programmer > > intervention to use. > > for widgets that don't use the native configuration system, such as > non-native > widgets. we support a couple of those now.
Then those wouldn't have any configXml object and this part of the logic would never be entered. I'm afraid I still don't see what the early exit code is doing. -- Richard
_______________________________________________ Plasma-devel mailing list Plasma-devel@kde.org https://mail.kde.org/mailman/listinfo/plasma-devel