summaryrefslogtreecommitdiff
path: root/data/gsd-enums.h
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2015-11-04 13:39:09 +0100
committerBastien Nocera <hadess@hadess.net>2015-11-10 13:07:09 +0100
commit69d9d8b1eda2d50acca5b4da58003afb8b82a7f1 (patch)
tree5dde54afc3d9edea8dbbc21ea3d5e4f4ae5a0939 /data/gsd-enums.h
parente5d48da0f10b3eba0e7f7315832ca72c0bf7d13e (diff)
downloadgnome-settings-daemon-69d9d8b1eda2d50acca5b4da58003afb8b82a7f1.tar.gz
media-keys: Re-add configuration for the power button
In commit 50564cde49ca2e17fb7e59f36a35d61c2cbef1af, we removed support for configuring the various "sleep state" buttons. However, the power button might need different behaviour based on the machine, which we cannot always detect. In later commits, we'll hard-code the actions for tablets and virtual machines. Note that "power off" is not an option as this would make the default action too destructive. It is recommended that you use a custom shortcut for this instead. https://bugzilla.gnome.org/show_bug.cgi?id=755953
Diffstat (limited to 'data/gsd-enums.h')
-rw-r--r--data/gsd-enums.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/data/gsd-enums.h b/data/gsd-enums.h
index b0fabb0e..4a0356a6 100644
--- a/data/gsd-enums.h
+++ b/data/gsd-enums.h
@@ -112,6 +112,13 @@ typedef enum
typedef enum
{
+ GSD_POWER_BUTTON_ACTION_NOTHING,
+ GSD_POWER_BUTTON_ACTION_SUSPEND,
+ GSD_POWER_BUTTON_ACTION_HIBERNATE
+} GsdPowerButtonActionType;
+
+typedef enum
+{
GSD_UPDATE_TYPE_ALL,
GSD_UPDATE_TYPE_SECURITY,
GSD_UPDATE_TYPE_NONE