@@ -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
@@ -149,6 +149,7 @@ Item {
149 title: i18n.ctr("Title: Lock/Log out dialog", "Log out")
149 title: i18n.ctr("Title: Lock/Log out dialog", "Log out")
150 text: i18n.tr("Are you sure you want to log out?")
150 text: i18n.tr("Are you sure you want to log out?")
152 text: i18n.ctr("Button: Lock the system", "Lock")
153 text: i18n.ctr("Button: Lock the system", "Lock")
153 onClicked: {
154 onClicked: {
154 LightDMService.greeter.showGreeter()
155 LightDMService.greeter.showGreeter()
@@ -156,6 +157,7 @@ Item {
159 focus: true
161 focus: true
160 text: i18n.ctr("Button: Log out from the system", "Log Out")
162 text: i18n.ctr("Button: Log out from the system", "Log Out")
161 onClicked: {
163 onClicked: {
@@ -164,6 +166,7 @@ Item {
167 text: i18n.tr("Cancel")
170 text: i18n.tr("Cancel")
168 onClicked: {
171 onClicked: {
169 logoutDialog.hide();
172 logoutDialog.hide();
@@ -179,12 +182,14 @@ Item {
179 title: i18n.ctr("Title: Reboot dialog", "Reboot")
182 title: i18n.ctr("Title: Reboot dialog", "Reboot")
180 text: i18n.tr("Are you sure you want to reboot?")
183 text: i18n.tr("Are you sure you want to reboot?")
182 text: i18n.tr("No")
186 text: i18n.tr("No")
183 onClicked: {
187 onClicked: {
184 rebootDialog.hide();
188 rebootDialog.hide();
188 focus: true
193 focus: true
189 text: i18n.tr("Yes")
194 text: i18n.tr("Yes")
190 onClicked: {
195 onClicked: {
@@ -204,6 +209,7 @@ Item {
204 title: i18n.ctr("Title: Power off/Restart dialog", "Power")
209 title: i18n.ctr("Title: Power off/Restart dialog", "Power")
205 text: i18n.tr("Are you sure you would like\nto power off?")
210 text: i18n.tr("Are you sure you would like\nto power off?")
207 focus: true
213 focus: true
208 text: i18n.ctr("Button: Power off the system", "Power off")
214 text: i18n.ctr("Button: Power off the system", "Power off")
209 onClicked: {
215 onClicked: {
@@ -214,6 +220,7 @@ Item {
214 color: theme.palette.normal.negative
220 color: theme.palette.normal.negative
217 text: i18n.ctr("Button: Restart the system", "Restart")
224 text: i18n.ctr("Button: Restart the system", "Restart")
218 onClicked: {
225 onClicked: {
219 root.closeAllApps();
226 root.closeAllApps();
@@ -222,6 +229,7 @@ Item {
225 text: i18n.tr("Cancel")
233 text: i18n.tr("Cancel")
226 onClicked: {
234 onClicked: {
227 powerDialog.hide();
235 powerDialog.hide();