@@ -1,5 +1,5 @@
2− * Copyright (C) 2014-2016 Canonical, Ltd.
2+ * Copyright (C) 2014-2017 Canonical, Ltd.
4 * This program is free software; you can redistribute it and/or modify
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
5 * it under the terms of the GNU General Public License as published by
@@ -155,6 +155,7 @@ Item {
155 title: i18n.ctr("Title: Lock/Log out dialog", "Log out")
155 title: i18n.ctr("Title: Lock/Log out dialog", "Log out")
156 text: i18n.tr("Are you sure you want to log out?")
156 text: i18n.tr("Are you sure you want to log out?")
158 text: i18n.ctr("Button: Lock the system", "Lock")
159 text: i18n.ctr("Button: Lock the system", "Lock")
159 onClicked: {
160 onClicked: {
160 LightDMService.greeter.showGreeter()
161 LightDMService.greeter.showGreeter()
@@ -162,6 +163,8 @@ Item {
165 text: i18n.ctr("Button: Log out from the system", "Log Out")
168 text: i18n.ctr("Button: Log out from the system", "Log Out")
166 onClicked: {
169 onClicked: {
167 unitySessionService.logout();
170 unitySessionService.logout();
@@ -169,6 +172,7 @@ Item {
172 text: i18n.tr("Cancel")
176 text: i18n.tr("Cancel")
173 onClicked: {
177 onClicked: {
174 logoutDialog.hide();
178 logoutDialog.hide();
@@ -185,6 +189,7 @@ Item {
185 title: i18n.ctr("Title: Reboot dialog", "Reboot")
189 title: i18n.ctr("Title: Reboot dialog", "Reboot")
186 text: i18n.tr("Are you sure you want to reboot?")
190 text: i18n.tr("Are you sure you want to reboot?")
188 text: i18n.tr("No")
193 text: i18n.tr("No")
189 onClicked: {
194 onClicked: {
190 rebootDialog.hide();
195 rebootDialog.hide();
@@ -192,6 +197,8 @@ Item {
192 Component.onCompleted: if (root.hasKeyboard) forceActiveFocus(Qt.TabFocusReason)
197 Component.onCompleted: if (root.hasKeyboard) forceActiveFocus(Qt.TabFocusReason)
195 text: i18n.tr("Yes")
202 text: i18n.tr("Yes")
196 onClicked: {
203 onClicked: {
197 root.closeAllApps();
204 root.closeAllApps();
@@ -210,6 +217,8 @@ Item {
210 title: i18n.ctr("Title: Power off/Restart dialog", "Power")
217 title: i18n.ctr("Title: Power off/Restart dialog", "Power")
211 text: i18n.tr("Are you sure you would like\nto power off?")
218 text: i18n.tr("Are you sure you would like\nto power off?")
213 text: i18n.ctr("Button: Power off the system", "Power off")
222 text: i18n.ctr("Button: Power off the system", "Power off")
214 onClicked: {
223 onClicked: {
215 root.closeAllApps();
224 root.closeAllApps();
@@ -219,6 +228,7 @@ Item {
219 color: theme.palette.normal.negative
228 color: theme.palette.normal.negative
222 text: i18n.ctr("Button: Restart the system", "Restart")
232 text: i18n.ctr("Button: Restart the system", "Restart")
223 onClicked: {
233 onClicked: {
224 root.closeAllApps();
234 root.closeAllApps();
@@ -227,6 +237,7 @@ Item {
230 text: i18n.tr("Cancel")
241 text: i18n.tr("Cancel")
231 onClicked: {
242 onClicked: {
232 powerDialog.hide();
243 powerDialog.hide();