Permalink
Browse files

Changes: Implementation of lock screen

  • Loading branch information...
1 parent edcb0f1 commit 403f741f3282ec20e4ee4f3e0c682a409fe87a99 Rahman Yusri Aftian committed Jul 18, 2012
Showing with 14 additions and 0 deletions.
  1. +6 −0 po/manokwari.pot
  2. +1 −0 system/menu.html
  3. +7 −0 system/menu.js
View
@@ -151,3 +151,9 @@ msgstr ""
#, no-wrap
msgid "Remove from Favorites"
msgstr ""
+
+#. type: span
+#: FIXME:0
+#, no-wrap
+msgid "Lock Screen"
+msgstr ""
View
@@ -24,6 +24,7 @@
<div data-role="listview" id="listGeneral" data-inset="true" >
<a href="#locations" data-transition="slide" id="btn-locations"><span>Locations</span><div class="ui-expandable-icon"></div></a>
<a href="#" data-tap-handler="handleSettings"><span>Settings</span></a>
+ <a href="#" data-tap-handler="handleLockScreen"><span>Lock Screen</span></a>
<a href="#" data-tap-handler="handleLogOut"><span>Log Out</span></a>
<a href="#" data-visibility="shutdownEnabled" data-tap-handler="handleShutDown"><span>Shut Down</span></a>
</div>
View
@@ -625,6 +625,12 @@ var menu = (function() {
Utils.run_command("gnome-control-center");
}
+// Handles Lock Screen button. The function is defined
+ // in data-handler attribute of the button
+ var handleLockScreen = function() {
+ Utils.run_command("gnome-screensaver-command -l");
+ }
+
// Handles LogOut button. The function is defined
// in data-handler attribute of the button
var handleLogOut = function() {
@@ -878,6 +884,7 @@ var menu = (function() {
init: init,
handleEsc: handleEsc,
handleSettings: handleSettings,
+ handleLockScreen: handleLockScreen,
handleLogOut: handleLogOut,
handleShutDown: handleShutDown,
prepareHide: prepareHide,

0 comments on commit 403f741

Please sign in to comment.