summaryrefslogtreecommitdiff
path: root/src/gpm-common.h
diff options
context:
space:
mode:
authorStefano Karapetsas <[email protected]>2012-11-14 07:41:30 -0800
committerStefano Karapetsas <[email protected]>2012-11-14 07:41:30 -0800
commitabf46d226f006c5b6843ccac2010469ae838d68b (patch)
tree88bdba96755c2af731cbddbf8c5cd8825f39c270 /src/gpm-common.h
parentfbf40ff748a675bdba451168c30aab7abeb5afa2 (diff)
parent1ea3233503f84366afd4e0a76e47afa258d17d04 (diff)
downloadmate-power-manager-abf46d226f006c5b6843ccac2010469ae838d68b.tar.bz2
mate-power-manager-abf46d226f006c5b6843ccac2010469ae838d68b.tar.xz
Merge pull request #25 from Firstyear/master
keyboard backlight, with basic controls.
Diffstat (limited to 'src/gpm-common.h')
-rw-r--r--src/gpm-common.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/gpm-common.h b/src/gpm-common.h
index 48bb89d..ca4762c 100644
--- a/src/gpm-common.h
+++ b/src/gpm-common.h
@@ -31,6 +31,7 @@ G_BEGIN_DECLS
#define GPM_DBUS_INTERFACE_BACKLIGHT "org.mate.PowerManager.Backlight"
#define GPM_DBUS_PATH "/org/mate/PowerManager"
#define GPM_DBUS_PATH_BACKLIGHT "/org/mate/PowerManager/Backlight"
+#define GPM_DBUS_PATH_KBD_BACKLIGHT "/org/mate/PowerManager/KbdBacklight"
/* common descriptions of this program */
#define GPM_NAME _("Power Manager")
@@ -59,6 +60,12 @@ G_BEGIN_DECLS
#define GPM_SETTINGS_BRIGHTNESS_AC "brightness-ac"
#define GPM_SETTINGS_BRIGHTNESS_DIM_BATT "brightness-dim-battery"
+/* keyboard backlight */
+#define GPM_SETTINGS_KBD_BACKLIGHT_BATT_REDUCE "kbd-backlight-battery-reduce"
+#define GPM_SETTINGS_KBD_BRIGHTNESS_ON_AC "kbd-brightness-on-ac"
+#define GPM_SETTINGS_KBD_BRIGHTNESS_DIM_BY_ON_BATT "kbd-brightness-dim-by-on-battery"
+#define GPM_SETTINGS_KBD_BRIGHTNESS_DIM_BY_ON_IDLE "kbd-brightness-dim-by-on-idle"
+
/* buttons */
#define GPM_SETTINGS_BUTTON_LID_AC "button-lid-ac"
#define GPM_SETTINGS_BUTTON_LID_BATT "button-lid-battery"
@@ -149,6 +156,10 @@ typedef enum {
} GpmActionPolicy;
gchar *gpm_get_timestring (guint time);
+guint gpm_discrete_from_percent (guint percentage,
+ guint levels);
+guint gpm_discrete_to_percent (guint discrete,
+ guint levels);
void gpm_help_display (const gchar *link_id);
#ifdef EGG_TEST
void gpm_common_test (gpointer data);