summaryrefslogtreecommitdiff
path: root/src/gpm-common.h
diff options
context:
space:
mode:
authorWilliam Brown <[email protected]>2012-11-11 20:02:11 +1030
committerWilliam Brown <[email protected]>2012-11-11 20:02:11 +1030
commit9361bbfbb5f7fda96f147310125fc709f4da2200 (patch)
tree7b096d440129278db391c2611133caad51c43f39 /src/gpm-common.h
parentfbf40ff748a675bdba451168c30aab7abeb5afa2 (diff)
downloadmate-power-manager-9361bbfbb5f7fda96f147310125fc709f4da2200.tar.bz2
mate-power-manager-9361bbfbb5f7fda96f147310125fc709f4da2200.tar.xz
Keyboard backlight patches, tested as working against 1.5.0 on F18
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..6029b2f 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/gnome/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);