summaryrefslogtreecommitdiff
path: root/src/gpm-prefs-core.c
diff options
context:
space:
mode:
authorMike Gabriel <[email protected]>2015-11-05 10:50:29 +0100
committerMike Gabriel <[email protected]>2015-11-05 10:51:30 +0100
commite4acc883b2b79d3c24ec6a9ad5a649f5e3d23e5e (patch)
tree8710c6942e4b35b09e784395b6a3a0ea40caf318 /src/gpm-prefs-core.c
parente31032070ee8564238ba0196ab78f6882114a0bf (diff)
downloadmate-power-manager-e4acc883b2b79d3c24ec6a9ad5a649f5e3d23e5e.tar.bz2
mate-power-manager-e4acc883b2b79d3c24ec6a9ad5a649f5e3d23e5e.tar.xz
Support disabling of PowerBtn.
By adding GPM_ACTION_POLICY_NOTHING to the available power button actions, it is now possible for MATE users to disable the system's power button, while being in a MATE desktop session. This is helpful if a system's power button is designed in a way that it can easily be accidentally hit by the user without noticing.
Diffstat (limited to 'src/gpm-prefs-core.c')
-rw-r--r--src/gpm-prefs-core.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gpm-prefs-core.c b/src/gpm-prefs-core.c
index 37f6842..ef7edad 100644
--- a/src/gpm-prefs-core.c
+++ b/src/gpm-prefs-core.c
@@ -632,6 +632,7 @@ prefs_setup_general (GpmPrefs *prefs)
GPM_ACTION_POLICY_SUSPEND,
GPM_ACTION_POLICY_HIBERNATE,
GPM_ACTION_POLICY_SHUTDOWN,
+ GPM_ACTION_POLICY_NOTHING,
-1};
const GpmActionPolicy suspend_button_actions[] =
{GPM_ACTION_POLICY_NOTHING,