From f5168c65de4088816d0d730657d1c3bc122474fd Mon Sep 17 00:00:00 2001 From: "Aaron J. Seigo" Date: Sat, 6 Sep 2008 16:29:47 +0000 Subject: [PATCH] put notmart out of his misery on this one =) let containment tell the world when it's context changes svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=857852 --- containment.cpp | 2 ++ containment.h | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/containment.cpp b/containment.cpp index 0a92db9f7..47f388d69 100644 --- a/containment.cpp +++ b/containment.cpp @@ -1269,6 +1269,8 @@ Context* ContainmentPrivate::context() { if (!con) { con = new Context(q); + q->connect(con, SIGNAL(changed(Plasma::Context*)), + q, SIGNAL(contextChanged(Plasma::Context*))); } return con; diff --git a/containment.h b/containment.h index 0e54aab6d..09a824740 100644 --- a/containment.h +++ b/containment.h @@ -373,6 +373,11 @@ class PLASMA_EXPORT Containment : public Applet */ void configureRequested(); + /** + * The activity associated to this containemnt has changed + */ + void contextChanged(Plasma::Context *context); + public Q_SLOTS: /** * Informs the Corona as to what position it is in. This is informational