From 7d2771e8f3430b5fd95c303e45c3b6e621d63c06 Mon Sep 17 00:00:00 2001 From: Chani Armitage Date: Thu, 11 Oct 2007 08:41:10 +0000 Subject: [PATCH] move applet->setDrawStandardBackground(false) to within Containment::addApplet() this appears to fix all the bugs with applets not showing up on the panel :) svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=724060 --- containment.cpp | 4 ++++ corona.cpp | 5 ----- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/containment.cpp b/containment.cpp index 68fc494c7..05b67aedd 100644 --- a/containment.cpp +++ b/containment.cpp @@ -366,6 +366,10 @@ Applet* Containment::addApplet(const QString& name, const QVariantList& args, ui } applet->setParentItem(this); + //panels don't want backgrounds, which is important when setting geometry + if (type() == PanelContainment) { + applet->setDrawStandardBackground(false); + } //the applet needs to be given constraints before it can set its geometry applet->updateConstraints(Plasma::AllConstraints); diff --git a/corona.cpp b/corona.cpp index 9777376af..be7a3752c 100644 --- a/corona.cpp +++ b/corona.cpp @@ -231,11 +231,6 @@ void Corona::loadDefaultSetup() applets << tasksApplet << systemTrayApplet << clockApplet; - foreach (Plasma::Applet* applet , applets) { - // If we have a Panel class (is a Container), this should move there - applet->init(); - applet->setDrawStandardBackground(false); - } } Containment* Corona::containmentForScreen(int screen) const