Merge lp:~3v1n0/unity/lockscreen-disable-with-osk into lp:unity
- lockscreen-disable-with-osk
- Merge into trunk
Status: | Merged |
---|---|
Merged at revision: | 3765 |
Proposed branch: | lp:~3v1n0/unity/lockscreen-disable-with-osk |
Merge into: | lp:unity |
Prerequisite: | lp:~unity-team/unity/gs-dbus-interface |
Diff against target: |
322 lines (+93/-16) 11 files modified
UnityCore/GLibDBusServer.cpp (+4/-4) UnityCore/GLibDBusServer.h (+1/-1) debian/rules (+2/-0) lockscreen/LockScreenController.cpp (+18/-5) lockscreen/LockScreenController.h (+2/-1) lockscreen/LockScreenSettings.cpp (+17/-0) lockscreen/LockScreenSettings.h (+1/-0) lockscreen/ScreenSaverDBusManager.cpp (+27/-3) lockscreen/ScreenSaverDBusManager.h (+3/-2) plugins/unityshell/src/unityshell.cpp (+3/-0) tests/data/external.gschema.xml (+15/-0) |
To merge this branch: | bzr merge lp:~3v1n0/unity/lockscreen-disable-with-osk |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
PS Jenkins bot (community) | continuous-integration | Approve | |
Unity Team | Pending | ||
Review via email:
|
Commit message
ScreenSaverDBus
This allows to just use the fallback gnome-screensaver lockscreen if we need to use it.
Description of the change
In order to work properly in fallback mode it needs lp:~3v1n0/gnome-screensaver/not-autostart-in-unity
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
PS Jenkins bot (ps-jenkins) wrote : | # |
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
PS Jenkins bot (ps-jenkins) wrote : | # |
PASSED: Continuous integration, rev:3753
http://
Executed test runs:
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:3755
http://
Executed test runs:
FAILURE: http://
FAILURE: http://
FAILURE: http://
Click here to trigger a rebuild:
http://
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
PS Jenkins bot (ps-jenkins) wrote : | # |
PASSED: Continuous integration, rev:3757
http://
Executed test runs:
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
PS Jenkins bot (ps-jenkins) wrote : | # |
PASSED: Continuous integration, rev:3758
http://
Executed test runs:
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
PS Jenkins bot (ps-jenkins) wrote : | # |
PASSED: Continuous integration, rev:3761
http://
Executed test runs:
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
Preview Diff
1 | === modified file 'UnityCore/GLibDBusServer.cpp' | |||
2 | --- UnityCore/GLibDBusServer.cpp 2013-11-14 01:51:24 +0000 | |||
3 | +++ UnityCore/GLibDBusServer.cpp 2014-04-09 13:25:46 +0000 | |||
4 | @@ -501,10 +501,10 @@ | |||
5 | 501 | , owner_name_(0) | 501 | , owner_name_(0) |
6 | 502 | {} | 502 | {} |
7 | 503 | 503 | ||
9 | 504 | Impl(DBusServer* server, std::string const& name, GBusType bus_type) | 504 | Impl(DBusServer* server, std::string const& name, GBusType bus_type, GBusNameOwnerFlags flags) |
10 | 505 | : Impl(server, name) | 505 | : Impl(server, name) |
11 | 506 | { | 506 | { |
13 | 507 | owner_name_ = g_bus_own_name(bus_type, name.c_str(), G_BUS_NAME_OWNER_FLAGS_NONE, | 507 | owner_name_ = g_bus_own_name(bus_type, name.c_str(), flags, |
14 | 508 | [] (GDBusConnection* conn, const gchar* name, gpointer data) | 508 | [] (GDBusConnection* conn, const gchar* name, gpointer data) |
15 | 509 | { | 509 | { |
16 | 510 | auto self = static_cast<DBusServer::Impl*>(data); | 510 | auto self = static_cast<DBusServer::Impl*>(data); |
17 | @@ -665,8 +665,8 @@ | |||
18 | 665 | std::vector<std::pair<DBusObject::Ptr, std::string>> pending_objects_; | 665 | std::vector<std::pair<DBusObject::Ptr, std::string>> pending_objects_; |
19 | 666 | }; | 666 | }; |
20 | 667 | 667 | ||
23 | 668 | DBusServer::DBusServer(std::string const& name, GBusType bus_type) | 668 | DBusServer::DBusServer(std::string const& name, GBusType bus_type, GBusNameOwnerFlags flags) |
24 | 669 | : impl_(new DBusServer::Impl(this, name, bus_type)) | 669 | : impl_(new DBusServer::Impl(this, name, bus_type, flags)) |
25 | 670 | {} | 670 | {} |
26 | 671 | 671 | ||
27 | 672 | DBusServer::DBusServer(GBusType bus_type) | 672 | DBusServer::DBusServer(GBusType bus_type) |
28 | 673 | 673 | ||
29 | === modified file 'UnityCore/GLibDBusServer.h' | |||
30 | --- UnityCore/GLibDBusServer.h 2013-03-02 12:55:59 +0000 | |||
31 | +++ UnityCore/GLibDBusServer.h 2014-04-09 13:25:46 +0000 | |||
32 | @@ -81,7 +81,7 @@ | |||
33 | 81 | typedef std::shared_ptr<DBusServer> Ptr; | 81 | typedef std::shared_ptr<DBusServer> Ptr; |
34 | 82 | 82 | ||
35 | 83 | DBusServer(GBusType bus_type = G_BUS_TYPE_SESSION); | 83 | DBusServer(GBusType bus_type = G_BUS_TYPE_SESSION); |
37 | 84 | DBusServer(std::string const& name, GBusType bus_type = G_BUS_TYPE_SESSION); | 84 | DBusServer(std::string const& name, GBusType bus_type = G_BUS_TYPE_SESSION, GBusNameOwnerFlags flags = G_BUS_NAME_OWNER_FLAGS_NONE); |
38 | 85 | virtual ~DBusServer(); | 85 | virtual ~DBusServer(); |
39 | 86 | 86 | ||
40 | 87 | void AddObjects(std::string const& introspection_xml, std::string const& path); | 87 | void AddObjects(std::string const& introspection_xml, std::string const& path); |
41 | 88 | 88 | ||
42 | === modified file 'debian/rules' | |||
43 | --- debian/rules 2014-02-28 19:41:19 +0000 | |||
44 | +++ debian/rules 2014-04-09 13:25:46 +0000 | |||
45 | @@ -56,7 +56,9 @@ | |||
46 | 56 | dh_shlibdeps -l$(LIBUNITY_PRIVATE) -O--parallel | 56 | dh_shlibdeps -l$(LIBUNITY_PRIVATE) -O--parallel |
47 | 57 | 57 | ||
48 | 58 | override_dh_auto_test: | 58 | override_dh_auto_test: |
49 | 59 | ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS))) | ||
50 | 59 | make -C obj-$(DEB_HOST_GNU_TYPE) check-headless | 60 | make -C obj-$(DEB_HOST_GNU_TYPE) check-headless |
51 | 61 | endif | ||
52 | 60 | 62 | ||
53 | 61 | %: | 63 | %: |
54 | 62 | dh $@ --with translations,quilt,python2,migrations --parallel | 64 | dh $@ --with translations,quilt,python2,migrations --parallel |
55 | 63 | 65 | ||
56 | === modified file 'lockscreen/LockScreenController.cpp' | |||
57 | --- lockscreen/LockScreenController.cpp 2014-04-09 13:25:46 +0000 | |||
58 | +++ lockscreen/LockScreenController.cpp 2014-04-09 13:25:46 +0000 | |||
59 | @@ -258,6 +258,12 @@ | |||
60 | 258 | skip_animation_ = false; | 258 | skip_animation_ = false; |
61 | 259 | } | 259 | } |
62 | 260 | 260 | ||
63 | 261 | void Controller::ShowBlankWindow() | ||
64 | 262 | { | ||
65 | 263 | EnsureBlankWindow(); | ||
66 | 264 | animation::StartOrReverse(blank_window_animator_, animation::Direction::FORWARD); | ||
67 | 265 | } | ||
68 | 266 | |||
69 | 261 | void Controller::HideBlankWindow() | 267 | void Controller::HideBlankWindow() |
70 | 262 | { | 268 | { |
71 | 263 | if (!blank_window_) | 269 | if (!blank_window_) |
72 | @@ -270,6 +276,15 @@ | |||
73 | 270 | 276 | ||
74 | 271 | void Controller::OnLockRequested() | 277 | void Controller::OnLockRequested() |
75 | 272 | { | 278 | { |
76 | 279 | if (Settings::Instance().use_legacy()) | ||
77 | 280 | { | ||
78 | 281 | auto proxy = std::make_shared<glib::DBusProxy>("org.gnome.ScreenSaver", "/org/gnome/ScreenSaver", "org.gnome.ScreenSaver"); | ||
79 | 282 | // By passing the proxy to the lambda we ensure that it will stay alive | ||
80 | 283 | // until we get the last callback. | ||
81 | 284 | proxy->CallBegin("Lock", nullptr, [proxy] (GVariant*, glib::Error const&) {}); | ||
82 | 285 | return; | ||
83 | 286 | } | ||
84 | 287 | |||
85 | 273 | if (IsLocked()) | 288 | if (IsLocked()) |
86 | 274 | { | 289 | { |
87 | 275 | LOG_DEBUG(logger) << "Failed to lock screen: the screen is already locked."; | 290 | LOG_DEBUG(logger) << "Failed to lock screen: the screen is already locked."; |
88 | @@ -311,8 +326,7 @@ | |||
89 | 311 | { | 326 | { |
90 | 312 | if (is_idle) | 327 | if (is_idle) |
91 | 313 | { | 328 | { |
94 | 314 | EnsureBlankWindow(); | 329 | ShowBlankWindow(); |
93 | 315 | animation::StartOrReverse(blank_window_animator_, animation::Direction::FORWARD); | ||
95 | 316 | } | 330 | } |
96 | 317 | else | 331 | else |
97 | 318 | { | 332 | { |
98 | @@ -328,8 +342,7 @@ | |||
99 | 328 | 342 | ||
100 | 329 | if (activate) | 343 | if (activate) |
101 | 330 | { | 344 | { |
104 | 331 | EnsureBlankWindow(); | 345 | ShowBlankWindow(); |
103 | 332 | animation::StartOrReverse(blank_window_animator_, animation::Direction::FORWARD); | ||
105 | 333 | animation::Skip(blank_window_animator_); | 346 | animation::Skip(blank_window_animator_); |
106 | 334 | } | 347 | } |
107 | 335 | else | 348 | else |
108 | @@ -376,11 +389,11 @@ | |||
109 | 376 | void Controller::OnUnlockRequested() | 389 | void Controller::OnUnlockRequested() |
110 | 377 | { | 390 | { |
111 | 378 | lockscreen_timeout_.reset(); | 391 | lockscreen_timeout_.reset(); |
112 | 392 | screensaver_post_lock_timeout_.reset(); | ||
113 | 379 | 393 | ||
114 | 380 | if (!IsLocked()) | 394 | if (!IsLocked()) |
115 | 381 | return; | 395 | return; |
116 | 382 | 396 | ||
117 | 383 | screensaver_post_lock_timeout_.reset(); | ||
118 | 384 | HideShields(); | 397 | HideShields(); |
119 | 385 | } | 398 | } |
120 | 386 | 399 | ||
121 | 387 | 400 | ||
122 | === modified file 'lockscreen/LockScreenController.h' | |||
123 | --- lockscreen/LockScreenController.h 2014-04-09 13:25:46 +0000 | |||
124 | +++ lockscreen/LockScreenController.h 2014-04-09 13:25:46 +0000 | |||
125 | @@ -52,10 +52,11 @@ | |||
126 | 52 | 52 | ||
127 | 53 | void EnsureShields(std::vector<nux::Geometry> const& monitors); | 53 | void EnsureShields(std::vector<nux::Geometry> const& monitors); |
128 | 54 | void EnsureBlankWindow(); | 54 | void EnsureBlankWindow(); |
129 | 55 | void HideBlankWindow(); | ||
130 | 56 | void LockScreen(); | 55 | void LockScreen(); |
131 | 57 | void ShowShields(); | 56 | void ShowShields(); |
132 | 58 | void HideShields(); | 57 | void HideShields(); |
133 | 58 | void ShowBlankWindow(); | ||
134 | 59 | void HideBlankWindow(); | ||
135 | 59 | void RequestPromptScreenLock(); | 60 | void RequestPromptScreenLock(); |
136 | 60 | void SimulateActivity(); | 61 | void SimulateActivity(); |
137 | 61 | void ResetPostLockScreenSaver(); | 62 | void ResetPostLockScreenSaver(); |
138 | 62 | 63 | ||
139 | === modified file 'lockscreen/LockScreenSettings.cpp' | |||
140 | --- lockscreen/LockScreenSettings.cpp 2014-04-09 13:25:46 +0000 | |||
141 | +++ lockscreen/LockScreenSettings.cpp 2014-04-09 13:25:46 +0000 | |||
142 | @@ -49,6 +49,10 @@ | |||
143 | 49 | const std::string LOCK_DELAY = "lock-delay"; | 49 | const std::string LOCK_DELAY = "lock-delay"; |
144 | 50 | const std::string LOCK_ENABLED = "lock-enabled"; | 50 | const std::string LOCK_ENABLED = "lock-enabled"; |
145 | 51 | const std::string LOCK_ON_SUSPEND = "ubuntu-lock-on-suspend"; | 51 | const std::string LOCK_ON_SUSPEND = "ubuntu-lock-on-suspend"; |
146 | 52 | |||
147 | 53 | const std::string A11Y_SETTINGS = "org.gnome.desktop.a11y.applications"; | ||
148 | 54 | const std::string USE_SCREEN_READER = "screen-reader-enabled"; | ||
149 | 55 | const std::string USE_OSK = "screen-keyboard-enabled"; | ||
150 | 52 | } | 56 | } |
151 | 53 | 57 | ||
152 | 54 | struct Settings::Impl | 58 | struct Settings::Impl |
153 | @@ -56,11 +60,14 @@ | |||
154 | 56 | Impl() | 60 | Impl() |
155 | 57 | : greeter_settings_(g_settings_new(GREETER_SETTINGS.c_str())) | 61 | : greeter_settings_(g_settings_new(GREETER_SETTINGS.c_str())) |
156 | 58 | , gs_settings_(g_settings_new(GS_SETTINGS.c_str())) | 62 | , gs_settings_(g_settings_new(GS_SETTINGS.c_str())) |
157 | 63 | , a11y_settings_(g_settings_new(A11Y_SETTINGS.c_str())) | ||
158 | 59 | , greeter_signal_(greeter_settings_, "changed", sigc::hide(sigc::hide(sigc::mem_fun(this, &Impl::UpdateGreeterSettings)))) | 64 | , greeter_signal_(greeter_settings_, "changed", sigc::hide(sigc::hide(sigc::mem_fun(this, &Impl::UpdateGreeterSettings)))) |
159 | 60 | , gs_signal_(gs_settings_, "changed", sigc::hide(sigc::hide(sigc::mem_fun(this, &Impl::UpdateGSSettings)))) | 65 | , gs_signal_(gs_settings_, "changed", sigc::hide(sigc::hide(sigc::mem_fun(this, &Impl::UpdateGSSettings)))) |
160 | 66 | , osk_signal_(a11y_settings_, "changed", sigc::hide(sigc::hide(sigc::mem_fun(this, &Impl::UpdateA11YSettings)))) | ||
161 | 61 | { | 67 | { |
162 | 62 | UpdateGreeterSettings(); | 68 | UpdateGreeterSettings(); |
163 | 63 | UpdateGSSettings(); | 69 | UpdateGSSettings(); |
164 | 70 | UpdateA11YSettings(); | ||
165 | 64 | } | 71 | } |
166 | 65 | 72 | ||
167 | 66 | void UpdateGreeterSettings() | 73 | void UpdateGreeterSettings() |
168 | @@ -83,11 +90,21 @@ | |||
169 | 83 | s->lock_delay = g_settings_get_uint(gs_settings_, LOCK_DELAY.c_str()); | 90 | s->lock_delay = g_settings_get_uint(gs_settings_, LOCK_DELAY.c_str()); |
170 | 84 | } | 91 | } |
171 | 85 | 92 | ||
172 | 93 | void UpdateA11YSettings() | ||
173 | 94 | { | ||
174 | 95 | bool legacy = false; | ||
175 | 96 | legacy = g_settings_get_boolean(a11y_settings_, USE_SCREEN_READER.c_str()) != FALSE; | ||
176 | 97 | legacy = legacy || g_settings_get_boolean(a11y_settings_, USE_OSK.c_str()) != FALSE; | ||
177 | 98 | settings_instance->use_legacy = legacy; | ||
178 | 99 | } | ||
179 | 100 | |||
180 | 86 | glib::Object<GSettings> greeter_settings_; | 101 | glib::Object<GSettings> greeter_settings_; |
181 | 87 | glib::Object<GSettings> gs_settings_; | 102 | glib::Object<GSettings> gs_settings_; |
182 | 103 | glib::Object<GSettings> a11y_settings_; | ||
183 | 88 | 104 | ||
184 | 89 | glib::Signal<void, GSettings*, const gchar*> greeter_signal_; | 105 | glib::Signal<void, GSettings*, const gchar*> greeter_signal_; |
185 | 90 | glib::Signal<void, GSettings*, const gchar*> gs_signal_; | 106 | glib::Signal<void, GSettings*, const gchar*> gs_signal_; |
186 | 107 | glib::Signal<void, GSettings*, const gchar*> osk_signal_; | ||
187 | 91 | }; | 108 | }; |
188 | 92 | 109 | ||
189 | 93 | Settings::Settings() | 110 | Settings::Settings() |
190 | 94 | 111 | ||
191 | === modified file 'lockscreen/LockScreenSettings.h' | |||
192 | --- lockscreen/LockScreenSettings.h 2014-04-09 13:25:46 +0000 | |||
193 | +++ lockscreen/LockScreenSettings.h 2014-04-09 13:25:46 +0000 | |||
194 | @@ -46,6 +46,7 @@ | |||
195 | 46 | nux::Property<int> lock_delay; | 46 | nux::Property<int> lock_delay; |
196 | 47 | nux::Property<bool> lock_on_blank; | 47 | nux::Property<bool> lock_on_blank; |
197 | 48 | nux::Property<bool> lock_on_suspend; | 48 | nux::Property<bool> lock_on_suspend; |
198 | 49 | nux::Property<bool> use_legacy; | ||
199 | 49 | 50 | ||
200 | 50 | static const int GRID_SIZE = 40; | 51 | static const int GRID_SIZE = 40; |
201 | 51 | 52 | ||
202 | 52 | 53 | ||
203 | === modified file 'lockscreen/ScreenSaverDBusManager.cpp' | |||
204 | --- lockscreen/ScreenSaverDBusManager.cpp 2014-04-09 13:25:46 +0000 | |||
205 | +++ lockscreen/ScreenSaverDBusManager.cpp 2014-04-09 13:25:46 +0000 | |||
206 | @@ -20,6 +20,7 @@ | |||
207 | 20 | #include "ScreenSaverDBusManager.h" | 20 | #include "ScreenSaverDBusManager.h" |
208 | 21 | 21 | ||
209 | 22 | #include "LockScreenSettings.h" | 22 | #include "LockScreenSettings.h" |
210 | 23 | #include "GLibDBusProxy.h" | ||
211 | 23 | #include "Variant.h" | 24 | #include "Variant.h" |
212 | 24 | 25 | ||
213 | 25 | namespace unity | 26 | namespace unity |
214 | @@ -55,12 +56,13 @@ | |||
215 | 55 | DBusManager::DBusManager(session::Manager::Ptr const& session) | 56 | DBusManager::DBusManager(session::Manager::Ptr const& session) |
216 | 56 | : active(false) | 57 | : active(false) |
217 | 57 | , session_(session) | 58 | , session_(session) |
219 | 58 | , server_(dbus::NAME) | 59 | , object_(std::make_shared<glib::DBusObject>(dbus::INTROSPECTION_XML, dbus::INTERFACE)) |
220 | 59 | , time_(0) | 60 | , time_(0) |
221 | 60 | { | 61 | { |
222 | 61 | active.changed.connect(sigc::mem_fun(this, &DBusManager::SetActive)); | 62 | active.changed.connect(sigc::mem_fun(this, &DBusManager::SetActive)); |
225 | 62 | server_.AddObjects(dbus::INTROSPECTION_XML, dbus::OBJECT_PATH); | 63 | |
226 | 63 | object_ = server_.GetObject(dbus::INTERFACE); | 64 | // This is a workaround we use to fallback to use gnome-screensaver if the screen reader is enabled |
227 | 65 | Settings::Instance().use_legacy.changed.connect(sigc::hide(sigc::mem_fun(this, &DBusManager::EnsureService))); | ||
228 | 64 | 66 | ||
229 | 65 | object_->SetMethodsCallsHandler([this] (std::string const& method, GVariant* variant) -> GVariant* { | 67 | object_->SetMethodsCallsHandler([this] (std::string const& method, GVariant* variant) -> GVariant* { |
230 | 66 | if (method == "Lock") | 68 | if (method == "Lock") |
231 | @@ -89,6 +91,28 @@ | |||
232 | 89 | 91 | ||
233 | 90 | return nullptr; | 92 | return nullptr; |
234 | 91 | }); | 93 | }); |
235 | 94 | |||
236 | 95 | EnsureService(); | ||
237 | 96 | } | ||
238 | 97 | |||
239 | 98 | void DBusManager::EnsureService() | ||
240 | 99 | { | ||
241 | 100 | if (!Settings::Instance().use_legacy()) | ||
242 | 101 | { | ||
243 | 102 | if (!server_) | ||
244 | 103 | { | ||
245 | 104 | server_ = std::make_shared<glib::DBusServer>(dbus::NAME, G_BUS_TYPE_SESSION, G_BUS_NAME_OWNER_FLAGS_REPLACE); | ||
246 | 105 | server_->AddObject(object_, dbus::OBJECT_PATH); | ||
247 | 106 | } | ||
248 | 107 | } | ||
249 | 108 | else | ||
250 | 109 | { | ||
251 | 110 | server_.reset(); | ||
252 | 111 | |||
253 | 112 | // Let's make GS to restart... | ||
254 | 113 | auto proxy = std::make_shared<glib::DBusProxy>("org.gnome.ScreenSaver", "/org/gnome/ScreenSaver", "org.gnome.ScreenSaver"); | ||
255 | 114 | proxy->CallBegin("SimulateUserActivity", nullptr, [proxy] (GVariant*, glib::Error const&) {}); | ||
256 | 115 | } | ||
257 | 92 | } | 116 | } |
258 | 93 | 117 | ||
259 | 94 | void DBusManager::SetActive(bool active) | 118 | void DBusManager::SetActive(bool active) |
260 | 95 | 119 | ||
261 | === modified file 'lockscreen/ScreenSaverDBusManager.h' | |||
262 | --- lockscreen/ScreenSaverDBusManager.h 2014-04-09 13:25:46 +0000 | |||
263 | +++ lockscreen/ScreenSaverDBusManager.h 2014-04-09 13:25:46 +0000 | |||
264 | @@ -29,7 +29,7 @@ | |||
265 | 29 | namespace lockscreen | 29 | namespace lockscreen |
266 | 30 | { | 30 | { |
267 | 31 | 31 | ||
269 | 32 | class DBusManager | 32 | class DBusManager : public sigc::trackable |
270 | 33 | { | 33 | { |
271 | 34 | public: | 34 | public: |
272 | 35 | typedef std::shared_ptr<DBusManager> Ptr; | 35 | typedef std::shared_ptr<DBusManager> Ptr; |
273 | @@ -43,9 +43,10 @@ | |||
274 | 43 | 43 | ||
275 | 44 | private: | 44 | private: |
276 | 45 | void SetActive(bool active); | 45 | void SetActive(bool active); |
277 | 46 | void EnsureService(); | ||
278 | 46 | 47 | ||
279 | 47 | session::Manager::Ptr session_; | 48 | session::Manager::Ptr session_; |
281 | 48 | glib::DBusServer server_; | 49 | glib::DBusServer::Ptr server_; |
282 | 49 | glib::DBusObject::Ptr object_; | 50 | glib::DBusObject::Ptr object_; |
283 | 50 | 51 | ||
284 | 51 | bool active_; | 52 | bool active_; |
285 | 52 | 53 | ||
286 | === modified file 'plugins/unityshell/src/unityshell.cpp' | |||
287 | --- plugins/unityshell/src/unityshell.cpp 2014-04-09 13:25:46 +0000 | |||
288 | +++ plugins/unityshell/src/unityshell.cpp 2014-04-09 13:25:46 +0000 | |||
289 | @@ -1984,6 +1984,9 @@ | |||
290 | 1984 | ubus_manager_.SendMessage(UBUS_OVERLAY_CLOSE_REQUEST); | 1984 | ubus_manager_.SendMessage(UBUS_OVERLAY_CLOSE_REQUEST); |
291 | 1985 | } | 1985 | } |
292 | 1986 | 1986 | ||
293 | 1987 | if (g_strcmp0(plugin, "scale") == 0) | ||
294 | 1988 | g_print("Scale event %s\n",event); | ||
295 | 1989 | |||
296 | 1987 | if (adapter.IsScaleActive() && g_strcmp0(plugin, "scale") == 0 && | 1990 | if (adapter.IsScaleActive() && g_strcmp0(plugin, "scale") == 0 && |
297 | 1988 | super_keypressed_) | 1991 | super_keypressed_) |
298 | 1989 | { | 1992 | { |
299 | 1990 | 1993 | ||
300 | === modified file 'tests/data/external.gschema.xml' | |||
301 | --- tests/data/external.gschema.xml 2014-04-09 13:25:46 +0000 | |||
302 | +++ tests/data/external.gschema.xml 2014-04-09 13:25:46 +0000 | |||
303 | @@ -106,4 +106,19 @@ | |||
304 | 106 | <default>true</default> | 106 | <default>true</default> |
305 | 107 | </key> | 107 | </key> |
306 | 108 | </schema> | 108 | </schema> |
307 | 109 | |||
308 | 110 | <schema path="/org/gnome/desktop/lockdown/" id="org.gnome.desktop.lockdown"> | ||
309 | 111 | <key type="b" name="disable-lock-screen"> | ||
310 | 112 | <default>false</default> | ||
311 | 113 | </key> | ||
312 | 114 | </schema> | ||
313 | 115 | |||
314 | 116 | <schema path="/org/gnome/desktop/a11y/applications/" id="org.gnome.desktop.a11y.applications"> | ||
315 | 117 | <key type="b" name="screen-keyboard-enabled"> | ||
316 | 118 | <default>false</default> | ||
317 | 119 | </key> | ||
318 | 120 | <key type="b" name="screen-reader-enabled"> | ||
319 | 121 | <default>false</default> | ||
320 | 122 | </key> | ||
321 | 123 | </schema> | ||
322 | 109 | </schemalist> | 124 | </schemalist> |
PASSED: Continuous integration, rev:3752 jenkins. qa.ubuntu. com/job/ unity-ci/ 855/ jenkins. qa.ubuntu. com/job/ unity-trusty- amd64-ci/ 391 jenkins. qa.ubuntu. com/job/ unity-trusty- armhf-ci/ 387 jenkins. qa.ubuntu. com/job/ unity-trusty- i386-ci/ 389
http://
Executed test runs:
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
Click here to trigger a rebuild: s-jenkins. ubuntu- ci:8080/ job/unity- ci/855/ rebuild
http://