Merge lp:~aacid/unity-2d/unity-2d_kill_launcherdbus into lp:unity-2d

Proposed by Albert Astals Cid
Status: Merged
Approved by: Michał Sawicz
Approved revision: 930
Merged at revision: 930
Proposed branch: lp:~aacid/unity-2d/unity-2d_kill_launcherdbus
Merge into: lp:unity-2d
Diff against target: 276 lines (+0/-159)
10 files modified
.bzrignore (+0/-1)
debian/unity-2d-shell.install.in (+0/-1)
shell/app/CMakeLists.txt (+0/-9)
shell/app/launcher.xml (+0/-22)
shell/app/launcherdbus.cpp (+0/-60)
shell/app/launcherdbus.h (+0/-52)
shell/app/shell.cpp (+0/-4)
shell/app/shelldeclarativeview.h (+0/-2)
shell/app/unity-2d-launcher.service.in (+0/-3)
shell/launcher/Launcher.qml (+0/-5)
To merge this branch: bzr merge lp:~aacid/unity-2d/unity-2d_kill_launcherdbus
Reviewer Review Type Date Requested Status
Michał Sawicz Approve
Review via email: mp+94340@code.launchpad.net

Description of the change

Remove LauncherDBus

I convinced Florian not to do it a while ago, but with the MulitMonitor work it's just more work keeping it for no real reason

To post a comment you must log in.
Revision history for this message
Michał Sawicz (saviq) :
review: Approve
Revision history for this message
Unity Merger (unity-merger) wrote :

No approved revision specified.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file '.bzrignore'
2--- .bzrignore 2012-02-07 18:41:24 +0000
3+++ .bzrignore 2012-02-23 10:23:17 +0000
4@@ -2,7 +2,6 @@
5
6 shell/app/dashadaptor.*
7 shell/app/launcheradaptor.*
8-shell/app/unity-2d-launcher.service
9 shell/app/unity-2d-places.service
10 shell/app/unity-2d-shell
11
12
13=== modified file 'debian/unity-2d-shell.install.in'
14--- debian/unity-2d-shell.install.in 2011-12-02 16:51:20 +0000
15+++ debian/unity-2d-shell.install.in 2012-02-23 10:23:17 +0000
16@@ -1,7 +1,6 @@
17 @DEBIAN_INSTALL_PREFIX@/@CMAKE_INSTALL_BINDIR@/unity-2d-shell
18 @DEBIAN_INSTALL_PREFIX@/@CMAKE_INSTALL_DATADIR@/applications/unity-2d-shell.desktop
19 @DEBIAN_INSTALL_PREFIX@/@CMAKE_INSTALL_DATADIR@/dbus-1/services/unity-2d-places.service
20-@DEBIAN_INSTALL_PREFIX@/@CMAKE_INSTALL_DATADIR@/dbus-1/services/unity-2d-launcher.service
21 @DEBIAN_INSTALL_PREFIX@/@CMAKE_INSTALL_DATADIR@/unity-2d/shell/*.qml
22 @DEBIAN_INSTALL_PREFIX@/@CMAKE_INSTALL_DATADIR@/unity-2d/shell/dash
23 @DEBIAN_INSTALL_PREFIX@/@CMAKE_INSTALL_DATADIR@/unity-2d/shell/launcher
24
25=== modified file 'shell/app/CMakeLists.txt'
26--- shell/app/CMakeLists.txt 2012-02-13 23:46:04 +0000
27+++ shell/app/CMakeLists.txt 2012-02-23 10:23:17 +0000
28@@ -6,13 +6,11 @@
29 set(shell_SRCS
30 shell.cpp
31 dashdbus.cpp
32- launcherdbus.cpp
33 shelldeclarativeview.cpp
34 )
35
36 set(shell_MOC_HDRS
37 dashdbus.h
38- launcherdbus.h
39 shelldeclarativeview.h
40 )
41
42@@ -22,9 +20,6 @@
43 configure_file(unity-2d-places.service.in unity-2d-places.service)
44 qt4_add_dbus_adaptor(shell_SRCS dash.xml dashdbus.h DashDBus)
45
46-configure_file(unity-2d-launcher.service.in unity-2d-launcher.service)
47-qt4_add_dbus_adaptor(shell_SRCS launcher.xml launcherdbus.h LauncherDBus)
48-
49 add_executable(unity-2d-shell ${shell_SRCS} ${shell_MOC_SRCS})
50
51 include_directories(
52@@ -58,10 +53,6 @@
53 DESTINATION ${CMAKE_INSTALL_DATADIR}/dbus-1/services
54 )
55
56-install(FILES ${CMAKE_CURRENT_BINARY_DIR}/unity-2d-launcher.service
57- DESTINATION ${CMAKE_INSTALL_DATADIR}/dbus-1/services
58- )
59-
60 install(FILES unity-2d-shell.desktop
61 DESTINATION ${CMAKE_INSTALL_DATADIR}/applications
62 )
63
64=== removed file 'shell/app/launcher.xml'
65--- shell/app/launcher.xml 2011-11-18 10:38:26 +0000
66+++ shell/app/launcher.xml 1970-01-01 00:00:00 +0000
67@@ -1,22 +0,0 @@
68-<!DOCTYPE node PUBLIC "-//freedesktop//DTD D-BUS Object Introspection 1.0//EN" "http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd">
69-<node xmlns:dox="http://www.ayatana.org/dbus/dox.dtd">
70- <dox:d><![CDATA[
71- @mainpage
72-
73- An interface to activate the launcher in Unity2d.
74- ]]></dox:d>
75- <interface name="com.canonical.Unity2d.Launcher" xmlns:dox="http://www.ayatana.org/dbus/dox.dtd">
76- <dox:d>
77- An interface to activate the launcher in Unity2d.
78- </dox:d>
79- <method name="AddWebFavorite">
80- <dox:d><![CDATA[
81- Request a URL to be added to the launcher as a web favorite.
82- ]]></dox:d>
83- <arg name="url" type="s" direction="in">
84- <dox:d>The URL to be favorited.</dox:d>
85- </arg>
86- </method>
87- </interface>
88-</node>
89-
90
91=== removed file 'shell/app/launcherdbus.cpp'
92--- shell/app/launcherdbus.cpp 2011-11-18 10:38:26 +0000
93+++ shell/app/launcherdbus.cpp 1970-01-01 00:00:00 +0000
94@@ -1,60 +0,0 @@
95-/*
96- * Copyright (C) 2011 Canonical, Ltd.
97- *
98- * Authors:
99- * Olivier Tilloy <olivier.tilloy@canonical.com>
100- *
101- * This program is free software; you can redistribute it and/or modify
102- * it under the terms of the GNU General Public License as published by
103- * the Free Software Foundation; version 3.
104- *
105- * This program is distributed in the hope that it will be useful,
106- * but WITHOUT ANY WARRANTY; without even the implied warranty of
107- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
108- * GNU General Public License for more details.
109- *
110- * You should have received a copy of the GNU General Public License
111- * along with this program. If not, see <http://www.gnu.org/licenses/>.
112- */
113-
114-#include "launcherdbus.h"
115-#include "launcheradaptor.h"
116-
117-// Local
118-#include <shelldeclarativeview.h>
119-
120-// Qt
121-#include <QtDBus/QDBusConnection>
122-
123-static const char* LAUNCHER_DBUS_SERVICE = "com.canonical.Unity2d.Launcher";
124-static const char* LAUNCHER_DBUS_OBJECT_PATH = "/Launcher";
125-
126-LauncherDBus::LauncherDBus(ShellDeclarativeView* view, QObject* parent)
127-: QObject(parent)
128-, m_view(view)
129-{
130-}
131-
132-LauncherDBus::~LauncherDBus()
133-{
134- QDBusConnection::sessionBus().unregisterService(LAUNCHER_DBUS_SERVICE);
135-}
136-
137-bool
138-LauncherDBus::connectToBus()
139-{
140- bool ok = QDBusConnection::sessionBus().registerService(LAUNCHER_DBUS_SERVICE);
141- if (!ok) {
142- return false;
143- }
144- new LauncherAdaptor(this);
145- QDBusConnection::sessionBus().registerObject(LAUNCHER_DBUS_OBJECT_PATH, this);
146-
147- return true;
148-}
149-
150-void
151-LauncherDBus::AddWebFavorite(const QString& url)
152-{
153- Q_EMIT m_view->addWebFavoriteRequested(url);
154-}
155
156=== removed file 'shell/app/launcherdbus.h'
157--- shell/app/launcherdbus.h 2011-11-18 10:38:26 +0000
158+++ shell/app/launcherdbus.h 1970-01-01 00:00:00 +0000
159@@ -1,52 +0,0 @@
160-/*
161- * Copyright (C) 2011 Canonical, Ltd.
162- *
163- * Authors:
164- * Olivier Tilloy <olivier.tilloy@canonical.com>
165- *
166- * This program is free software; you can redistribute it and/or modify
167- * it under the terms of the GNU General Public License as published by
168- * the Free Software Foundation; version 3.
169- *
170- * This program is distributed in the hope that it will be useful,
171- * but WITHOUT ANY WARRANTY; without even the implied warranty of
172- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
173- * GNU General Public License for more details.
174- *
175- * You should have received a copy of the GNU General Public License
176- * along with this program. If not, see <http://www.gnu.org/licenses/>.
177- */
178-
179-#ifndef LauncherDBus_H
180-#define LauncherDBus_H
181-
182-#include <QtCore/QObject>
183-#include <QtDBus/QDBusContext>
184-
185-class ShellDeclarativeView;
186-
187-/**
188- * DBus interface for the launcher.
189- *
190- * Note: Methods from this class should not be called from within the Launcher:
191- * some of them may rely on the call coming from DBus.
192- */
193-class LauncherDBus : public QObject, protected QDBusContext
194-{
195- Q_OBJECT
196-
197-public:
198- LauncherDBus(ShellDeclarativeView* view, QObject* parent=0);
199- ~LauncherDBus();
200-
201- bool connectToBus();
202-
203-public Q_SLOTS:
204- Q_NOREPLY void AddWebFavorite(const QString& url);
205-
206-private:
207- ShellDeclarativeView* m_view;
208-};
209-
210-#endif // LauncherDBus_H
211-
212
213=== modified file 'shell/app/shell.cpp'
214--- shell/app/shell.cpp 2012-02-13 23:46:04 +0000
215+++ shell/app/shell.cpp 2012-02-23 10:23:17 +0000
216@@ -44,7 +44,6 @@
217 #include "shelldeclarativeview.h"
218 #include "dashclient.h"
219 #include "dashdbus.h"
220-#include "launcherdbus.h"
221
222 int main(int argc, char *argv[])
223 {
224@@ -119,8 +118,5 @@
225 return -1;
226 }
227
228- LauncherDBus launcherDBus(&view);
229- launcherDBus.connectToBus();
230-
231 return application.exec();
232 }
233
234=== modified file 'shell/app/shelldeclarativeview.h'
235--- shell/app/shelldeclarativeview.h 2012-02-13 23:46:04 +0000
236+++ shell/app/shelldeclarativeview.h 2012-02-23 10:23:17 +0000
237@@ -88,7 +88,6 @@
238 void monitoredAreaChanged();
239 void monitoredAreaContainsMouseChanged();
240
241- void addWebFavoriteRequested(const QUrl& url);
242 void superKeyHeldChanged(bool superKeyHeld);
243 void superKeyTapped();
244 void activateShortcutPressed(int itemIndex);
245@@ -134,7 +133,6 @@
246 bool m_monitoredAreaContainsMouse;
247
248 friend class DashDBus;
249- friend class LauncherDBus;
250 };
251
252 Q_DECLARE_METATYPE(ShellDeclarativeView*)
253
254=== removed file 'shell/app/unity-2d-launcher.service.in'
255--- shell/app/unity-2d-launcher.service.in 2011-11-11 18:46:20 +0000
256+++ shell/app/unity-2d-launcher.service.in 1970-01-01 00:00:00 +0000
257@@ -1,3 +0,0 @@
258-[D-BUS Service]
259-Name=com.canonical.Unity2d.Launcher
260-Exec=@CMAKE_INSTALL_PREFIX@/@CMAKE_INSTALL_BINDIR@/unity-2d-shell
261
262=== modified file 'shell/launcher/Launcher.qml'
263--- shell/launcher/Launcher.qml 2012-02-17 17:38:27 +0000
264+++ shell/launcher/Launcher.qml 2012-02-23 10:23:17 +0000
265@@ -205,11 +205,6 @@
266 }
267
268 Connections {
269- target: declarativeView
270- onAddWebFavoriteRequested: applications.insertWebFavorite(url)
271- }
272-
273- Connections {
274 target: applications
275 onApplicationBecameUrgent: {
276 if (main.autoScrolling) {

Subscribers

People subscribed via source and target branches