Skip to content
Snippets Groups Projects
Commit fc3e9938 authored by Sean Davis's avatar Sean Davis
Browse files

Drop unused config /power-management-delay

parent d91f3496
No related branches found
No related tags found
No related merge requests found
......@@ -113,21 +113,6 @@ _gs_prefs_set_timeout (GSPrefs *prefs,
prefs->timeout = value;
}
static void
_gs_prefs_set_power_timeout (GSPrefs *prefs,
int value) {
if (value < 1)
value = 60;
/* pick a reasonable large number for the
upper bound */
if (value > 480)
value = 480;
/* this value is in seconds - others are in minutes */
prefs->power_timeout = value * 1000;
}
static void
_gs_prefs_set_lock_timeout (GSPrefs *prefs,
int value) {
......@@ -279,11 +264,6 @@ gs_prefs_load_from_settings (GSPrefs *prefs) {
DEFAULT_KEY_IDLE_DELAY);
_gs_prefs_set_timeout (prefs, value);
value = xfconf_channel_get_int (prefs->priv->channel,
KEY_POWER_DELAY,
DEFAULT_KEY_POWER_DELAY);
_gs_prefs_set_power_timeout (prefs, value);
value = xfconf_channel_get_int (prefs->priv->channel,
KEY_LOCK_DELAY,
DEFAULT_KEY_LOCK_DELAY);
......@@ -368,11 +348,6 @@ key_changed_cb (XfconfChannel *channel,
delay = xfconf_channel_get_int (channel, property, DEFAULT_KEY_IDLE_DELAY);
_gs_prefs_set_timeout (prefs, delay);
} else if (strcmp (property, KEY_POWER_DELAY) == 0) {
int delay;
delay = xfconf_channel_get_int (channel, property, DEFAULT_KEY_POWER_DELAY);
_gs_prefs_set_power_timeout (prefs, delay);
} else if (strcmp (property, KEY_LOCK_DELAY) == 0) {
int delay;
......@@ -453,7 +428,6 @@ gs_prefs_init (GSPrefs *prefs) {
prefs->user_switch_enabled = FALSE;
prefs->timeout = 600000;
prefs->power_timeout = 60000;
prefs->lock_timeout = 0;
prefs->logout_timeout = 14400000;
prefs->cycle = 600000;
......
......@@ -54,14 +54,6 @@ G_BEGIN_DECLS
#define KEY_IDLE_DELAY "/idle-delay"
#define DEFAULT_KEY_IDLE_DELAY 5
/**
* Time before power management baseline
* The number of seconds of inactivity before signalling to power management.
* This key is set and maintained by the session power management agent.
*/
#define KEY_POWER_DELAY "/power-management-delay"
#define DEFAULT_KEY_POWER_DELAY 30
/**
* Time before locking
* The number of minutes after screensaver activation before locking the screen.
......@@ -177,7 +169,6 @@ typedef struct
guint user_switch_enabled : 1; /* Whether to offer the user switch option */
guint keyboard_enabled : 1; /* Whether to try to embed a keyboard */
guint status_message_enabled : 1; /* show the status message in the lock */
guint power_timeout; /* how much idle time before power management */
guint timeout; /* how much idle time before activation */
guint lock_timeout; /* how long after activation locking starts */
guint logout_timeout; /* how long until the logout option appears */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment