[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdebase/workspace/plasma/plasma
From: Aaron J. Seigo <aseigo () kde ! org>
Date: 2008-05-22 22:59:55
Message-ID: 1211497195.613288.12976.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 811414 by aseigo:
add a folderview, set to view desktop:/, to the first screen.
M +13 -1 desktopcorona.cpp
--- trunk/KDE/kdebase/workspace/plasma/plasma/desktopcorona.cpp #811413:811414
@@ -24,6 +24,7 @@
#include <QGraphicsLayout>
#include <KDebug>
+#include <KDialog>
#include <plasma/containment.h>
@@ -84,12 +85,23 @@
c->setScreen(i);
c->setFormFactor(Plasma::Planar);
c->flushPendingConstraintsEvents();
- emit containmentAdded(c);
+ // put a folder view on the first screen
+ if (i == 0) {
+ Plasma::Applet *folderView = Plasma::Applet::load("folderview", c->id() + 1);
+ c->addApplet(folderView, QPointF(KDialog::spacingHint(), KDialog::spacingHint()), true);
+ KConfigGroup config = folderView->config();
+ config.writeEntry("url", "desktop:/");
+ folderView->flushPendingConstraintsEvents();
+ folderView->init();
+ }
+
if (g.x() <= topLeftCorner.x() && g.y() >= topLeftCorner.y()) {
topLeftCorner = g.topLeft();
topLeftScreen = i;
}
+
+ emit containmentAdded(c);
}
// make a panel at the bottom
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic