@@ -15,7 +15,6 @@
1515 */
1616
1717import QtQuick 2.0
18−import GSettings 1.0
1918import Ubuntu.Application 0.1
2019import Ubuntu.Components 0.1
2120import Ubuntu.Gestures 0.1
@@ -43,8 +42,8 @@ FocusScope {
4342 height: tablet ? units.gu(100) : applicationArguments.hasGeometry() ? applicationArguments.height() : units.gu(71)
4443
4544 property real edgeSize: units.gu(2)
46− property url defaultBackground: shell.width >= units.gu(60) ? "graphics/tablet_background.jpg" : "graphics/phone_background.jpg"
47− property url background: backgroundSettings.pictureUri
45+ property url default_background: shell.width >= units.gu(60) ? "graphics/tablet_background.jpg" : "graphics/phone_background.jpg"
46+ property url background: default_background
4847 readonly property real panelHeight: panel.panelHeight
4948
5049 property bool dashShown: dash.shown
@@ -130,11 +129,6 @@ FocusScope {
130129 }
131130 }
132131
133− GSettings {
134− id: backgroundSettings
135− schema.id: "org.gnome.desktop.background"
136− }
137−
138132 VolumeControl {
139133 id: volumeControl
140134 }
@@ -142,12 +136,6 @@ FocusScope {
142136 Keys.onVolumeUpPressed: volumeControl.volumeUp()
143137 Keys.onVolumeDownPressed: volumeControl.volumeDown()
144138
145− Keys.onReleased: {
146− if (event.key == Qt.Key_PowerOff) {
147− greeter.show()
148− }
149− }
150−
151139 Item {
152140 id: underlay
153141 objectName: "underlay"
@@ -165,16 +153,12 @@ FocusScope {
165153 // through the translucent parts of the shell surface.
166154 visible: !fullyCovered && !applicationSurfaceShouldBeSeen
167155
168− CrossFadeImage {
156+ Image {
169157 id: backgroundImage
170− objectName: "backgroundImage"
171158 source: shell.background
159+ sourceSize.width: parent.width
160+ sourceSize.height: parent.height
172161 anchors.fill: parent
173− onStatusChanged: {
174− if (status == Image.Error) {
175− backgroundSettings.pictureUri = shell.defaultBackground
176− }
177− }
178162 }
179163
180164 Rectangle {
@@ -263,6 +247,7 @@ FocusScope {
263247 }
264248 }
265249
250+
266251 Item {
267252 id: stagesOuterContainer
268253
@@ -327,6 +312,7 @@ FocusScope {
327312 ignoreUnknownSignals: true
328313 }
329314
315+
330316 Stage {
331317 id: mainStage
332318
@@ -505,7 +491,7 @@ FocusScope {
505491 onSelected: {
506492 // Update background
507493 var bgPath = greeter.model.data(uid, LightDM.UserRoles.BackgroundPathRole)
508− shell.background = bgPath ? bgPath : defaultBackground
494+ shell.background = bgPath ? bgPath : default_background
509495 // Update edge demo hint
510496 var user = LightDM.Users.data(uid, LightDM.UserRoles.NameRole)
511497 shell.showEdgeDemo = true //AccountsService.getUserProperty(user, "demo-edges")
@@ -581,6 +567,7 @@ FocusScope {
581567 onPowerStateChange: {
582568 if (state == 0) { // suspend
583569 powerConnection.setFocused(false);
570+ greeter.show();
584571 } else if (state == 1) { // active
585572 powerConnection.setFocused(true);
586573 }