Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
xfce4-screensaver
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Apps
xfce4-screensaver
Commits
fc3e9938
Commit
fc3e9938
authored
6 years ago
by
Sean Davis
Browse files
Options
Downloads
Patches
Plain Diff
Drop unused config /power-management-delay
parent
d91f3496
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/gs-prefs.c
+0
-26
0 additions, 26 deletions
src/gs-prefs.c
src/gs-prefs.h
+0
-9
0 additions, 9 deletions
src/gs-prefs.h
with
0 additions
and
35 deletions
src/gs-prefs.c
+
0
−
26
View file @
fc3e9938
...
...
@@ -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
;
...
...
This diff is collapsed.
Click to expand it.
src/gs-prefs.h
+
0
−
9
View file @
fc3e9938
...
...
@@ -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 */
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment