Notify applets that are added to panels about their new constraints too.

This fixes the system tray not updating when being removed and then readded
to the panel. Tasks still doesn't work though. :(

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=754326
This commit is contained in:
Jason Stubbs 2007-12-29 15:44:43 +00:00
parent 06b1cff2ce
commit 900d587280

View File

@ -458,6 +458,10 @@ Applet* Containment::addApplet(const QString& name, const QVariantList& args, ui
d->applets.insert(index, applet);
}
//the applet needs to be given constraints before it can set its geometry
applet->updateConstraints(Plasma::AllConstraints);
applet->flushUpdatedConstraints();
break;
}