summaryrefslogtreecommitdiff
path: root/plugins
diff options
authorAndrea Azzarone <azzaronea@gmail.com>2012-11-15 18:07:44 +0100
committerAndrea Azzarone <azzaronea@gmail.com>2012-11-15 18:07:44 +0100
commitcf52ef6603156e172312514d1502bab02d93082a (patch)
tree55e8de7b89300e5d86b8bf56c06f41b53628d582 /plugins
parentb4597ebe51e2a1f366e91c5e308a82a5c38a69fd (diff)
Use the new classes in real code.
(bzr r2898.4.7)
Diffstat (limited to 'plugins')
-rw-r--r--plugins/unityshell/src/unityshell.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/plugins/unityshell/src/unityshell.cpp b/plugins/unityshell/src/unityshell.cpp
index 7c5814e98..59408234a 100644
--- a/plugins/unityshell/src/unityshell.cpp
+++ b/plugins/unityshell/src/unityshell.cpp
@@ -41,6 +41,9 @@
#include "unityshell.h"
#include "BackgroundEffectHelper.h"
#include "UnityGestureBroker.h"
+#include "launcher/XdndCollectionWindowImp.h"
+#include "launcher/XdndManagerImp.h"
+#include "launcher/XdndStartStopNotifierImp.h"
#include <glib/gi18n-lib.h>
#include <gtk/gtk.h>
@@ -3075,7 +3078,12 @@ void UnityScreen::OnDashRealized ()
void UnityScreen::initLauncher()
{
Timer timer;
- launcher_controller_ = std::make_shared<launcher::Controller>();
+
+ auto xdnd_collection_window = std::make_shared<XdndCollectionWindowImp>();
+ auto xdnd_start_stop_notifier = std::make_shared<XdndStartStopNotifierImp>();
+ auto xdnd_manager = std::make_shared<XdndManagerImp>(xdnd_start_stop_notifier, xdnd_collection_window);
+
+ launcher_controller_ = std::make_shared<launcher::Controller>(xdnd_manager);
AddChild(launcher_controller_.get());
switcher_controller_ = std::make_shared<switcher::Controller>();