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
Package Registry
Model registry
Operate
Terraform modules
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
Bobby Rong
xfce4-screensaver
Commits
0309df65
Commit
0309df65
authored
4 years ago
by
O H
Committed by
Sean Davis
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
change unit of cycle from milliseconds to seconds
Signed-off-by:
Olaf Hering
<
olaf@aepfle.de
>
parent
504ed748
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/gs-manager.c
+3
-3
3 additions, 3 deletions
src/gs-manager.c
src/gs-prefs.c
+2
-2
2 additions, 2 deletions
src/gs-prefs.c
src/gs-prefs.h
+1
-1
1 addition, 1 deletion
src/gs-prefs.h
with
6 additions
and
6 deletions
src/gs-manager.c
+
3
−
3
View file @
0309df65
...
...
@@ -413,8 +413,8 @@ remove_cycle_timer (GSManager *manager) {
static
void
add_cycle_timer
(
GSManager
*
manager
,
glong
timeout
)
{
manager
->
priv
->
cycle_timeout_id
=
g_timeout_add
(
timeout
,
glong
seconds
)
{
manager
->
priv
->
cycle_timeout_id
=
g_timeout_add
_seconds
(
seconds
,
(
GSourceFunc
)
cycle_timeout
,
manager
);
}
...
...
@@ -802,7 +802,7 @@ manager_show_window (GSManager *manager,
remove_lock_timer
(
manager
);
add_lock_timer
(
manager
,
manager
->
priv
->
prefs
->
lock_timeout
);
if
(
manager
->
priv
->
prefs
->
cycle
>=
10
000
)
{
if
(
manager
->
priv
->
prefs
->
cycle
>=
10
)
{
remove_cycle_timer
(
manager
);
add_cycle_timer
(
manager
,
manager
->
priv
->
prefs
->
cycle
);
}
...
...
This diff is collapsed.
Click to expand it.
src/gs-prefs.c
+
2
−
2
View file @
0309df65
...
...
@@ -141,7 +141,7 @@ _gs_prefs_set_cycle_timeout (GSPrefs *prefs,
if
(
value
>
480
)
value
=
480
;
prefs
->
cycle
=
value
*
60
000
;
prefs
->
cycle
=
value
*
60
;
}
static
void
...
...
@@ -603,7 +603,7 @@ gs_prefs_init (GSPrefs *prefs) {
prefs
->
timeout
=
600000
;
prefs
->
lock_timeout
=
0
;
prefs
->
logout_timeout
=
14400000
;
prefs
->
cycle
=
600
000
;
prefs
->
cycle
=
600
;
prefs
->
mode
=
GS_MODE_SINGLE
;
...
...
This diff is collapsed.
Click to expand it.
src/gs-prefs.h
+
1
−
1
View file @
0309df65
...
...
@@ -230,7 +230,7 @@ typedef struct
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 */
guint
cycle
;
/* how
long
each theme should run */
guint
cycle
;
/* how
many seconds
each theme should run */
guint
fullscreen_inhibit
:
1
;
/* inhibit screensaver when an application is fullscreen */
char
*
logout_command
;
/* command to use to logout */
...
...
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