summaryrefslogtreecommitdiff
path: root/unity-standalone
diff options
authorJussi Pakkanen <jussi.pakkanen@canonical.com>2012-11-26 18:09:53 +0200
committerJussi Pakkanen <jussi.pakkanen@canonical.com>2012-11-26 18:09:53 +0200
commit2c4251b8cf23c8b1527c2620e3ac0a76c62a659c (patch)
tree115cbc90c3bf27bbfe88f7042535b7c66bd78382 /unity-standalone
parentcc4760fe63056cae31a515f16376452c37f8f388 (diff)
parentd806e15e1798d5aa07b896af57aa90cfca66e3cd (diff)
Merged with trunk.
(bzr r2861.2.6)
Diffstat (limited to 'unity-standalone')
-rw-r--r--unity-standalone/StandaloneUnity.cpp12
1 files changed, 7 insertions, 5 deletions
diff --git a/unity-standalone/StandaloneUnity.cpp b/unity-standalone/StandaloneUnity.cpp
index ebc649a96..593af9f61 100644
--- a/unity-standalone/StandaloneUnity.cpp
+++ b/unity-standalone/StandaloneUnity.cpp
@@ -86,9 +86,10 @@ UnityStandalone::~UnityStandalone ()
void UnityStandalone::Init ()
{
- launcher_controller.reset(new launcher::Controller());
- panel_controller.reset(new panel::Controller());
- dash_controller.reset(new dash::Controller());
+ auto xdnd_manager = std::make_shared<XdndManager>();
+ launcher_controller = std::make_shared<launcher::Controller>(xdnd_manager);
+ panel_controller = std::make_shared<panel::Controller>();
+ dash_controller = std::make_shared<dash::Controller>();
dash_controller->launcher_width = launcher_controller->launcher().GetAbsoluteWidth() - 1;
panel_controller->launcher_width = launcher_controller->launcher().GetAbsoluteWidth() - 1;
@@ -119,8 +120,9 @@ UnityStandaloneTV::~UnityStandaloneTV() {};
void UnityStandaloneTV::Init()
{
- launcher_controller.reset(new launcher::Controller());
- dash_controller.reset(new dash::Controller());
+ auto xdnd_manager = std::make_shared<XdndManager>();
+ launcher_controller = std::make_shared<launcher::Controller>(xdnd_manager);
+ dash_controller = std::make_shared<dash::Controller>();
dash_controller->launcher_width = launcher_controller->launcher().GetAbsoluteWidth() - 1;
UBusManager().SendMessage(UBUS_DASH_EXTERNAL_ACTIVATION, nullptr);