Niels Slot and myself were looking at a problem with the Ruby tutorial
applet, in that it was ignoring setHasConfigurationInterface(false) calls in
its init() method. When I looked at the Plasma::Applet applet.cpp code there
is a call to see it to true in flushPendingConstraintsEvents().
void Applet::flushPendingConstraintsEvents()
{
if (d->pendingConstraints == NoConstraint) {
return;
}
...
if (c & StartupCompletedConstraint) {
// start up is done, we can now go do a mod timer
if (d->modificationsTimerId > 0) {
killTimer(d->modificationsTimerId);
}
d->modificationsTimerId = 0;
if (!isContainment()) {
setHasConfigurationInterface(true);
}
}
Is this correct? It isn't obvious why the call is here, but it does mean
that scripting applets can't turn off their configuration interface.
-- Richard
_______________________________________________
Plasma-devel mailing list
[email protected]
https://mail.kde.org/mailman/listinfo/plasma-devel