[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdebase/workspace/libs/plasma
From:       Aaron J. Seigo <aseigo () kde ! org>
Date:       2008-01-06 20:38:40
Message-ID: 1199651920.697695.9189.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 758066 by aseigo:

add a way for Containments to get notified that startup is indeed complete


 M  +3 -1      corona.cpp  
 M  +1 -0      plasma.h  


--- trunk/KDE/kdebase/workspace/libs/plasma/corona.cpp #758065:758066
@@ -236,7 +236,7 @@
             }
 
             Applet *applet = c->addApplet(plugin, QVariantList(), appId, \
                appletConfig.readEntry("geometry", QRectF()), true);
-            
+
             QList<qreal> m = appletConfig.readEntry("transform", QList<qreal>());
             if (m.count() == 9) {
                 QTransform t(m[0], m[1], m[2], m[3], m[4], m[5], m[6], m[7], m[8]);
@@ -257,6 +257,7 @@
                 applet->init();
             }
 
+            containment->updateConstraints(Plasma::StartupCompletedConstraint);
             containment->flushUpdatedConstraints();
         }
 
@@ -406,6 +407,7 @@
     if (!delayedInit) {
         addItem(containment);
         containment->init();
+        containment->updateConstraints(Plasma::StartupCompletedConstraint);
     }
 
     d->containments.append(containment);
--- trunk/KDE/kdebase/workspace/libs/plasma/plasma.h #758065:758066
@@ -42,6 +42,7 @@
                   ScreenConstraint = 4 /** Which screen an object is on */,
                   SizeConstraint = 8 /** the size of the applet was changed */,
                   ImmutableConstraint = 16 /** the immutability (locked) nature of \
the applet changed  */, +                  StartupCompletedConstraint = 32 /** \
                application startup has completed */,
                   AllConstraints = FormFactorConstraint | LocationConstraint | \
ScreenConstraint | SizeConstraint | ImmutableConstraint  };
 Q_DECLARE_FLAGS(Constraints, Constraint)


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic