Applet::flushPendingConstraintsEvents() calls setHasConfigurationInterface(true)
Richard Dale
richard.j.dale at gmail.com
Mon Jan 19 21:13:43 CET 2009
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.kde.org/pipermail/plasma-devel/attachments/20090119/38b047cf/attachment.htm
More information about the Plasma-devel
mailing list