Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
Steve Lhomme
VLC
Commits
59add632
Commit
59add632
authored
Sep 17, 2005
by
Clément Stenac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Default to disabling screensaver under X (Closes:#253)
Hide screensaver interface from the prefs
parent
3fba3944
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
3 deletions
+17
-3
modules/misc/screensaver.c
modules/misc/screensaver.c
+0
-2
src/libvlc.c
src/libvlc.c
+12
-1
src/libvlc.h
src/libvlc.h
+5
-0
No files found.
modules/misc/screensaver.c
View file @
59add632
...
...
@@ -41,8 +41,6 @@ static void Run ( intf_thread_t *p_intf );
* Module descriptor
*****************************************************************************/
vlc_module_begin
();
set_category
(
CAT_INTERFACE
);
set_subcategory
(
SUBCAT_INTERFACE_CONTROL
);
set_description
(
_
(
"X Screensaver disabler"
)
);
set_capability
(
"interface"
,
0
);
set_callbacks
(
Activate
,
NULL
);
...
...
src/libvlc.c
View file @
59add632
...
...
@@ -748,10 +748,21 @@ int VLC_Init( int i_object, int i_argc, char *ppsz_argv[] )
}
/*
* Al
l
ways load the hotkeys interface if it exists
* Always load the hotkeys interface if it exists
*/
VLC_AddIntf
(
0
,
"hotkeys,none"
,
VLC_FALSE
,
VLC_FALSE
);
/*
* If needed, load the Xscreensaver interface
* Currently, only for X
*/
#ifdef HAVE_X11_XLIB_H
if
(
config_GetInt
(
p_vlc
,
"disable-screensaver"
)
==
1
)
{
VLC_AddIntf
(
0
,
"screensaver"
,
VLC_FALSE
,
VLC_FALSE
);
}
#endif
/*
* FIXME: kludge to use a p_vlc-local variable for the Mozilla plugin
*/
...
...
src/libvlc.h
View file @
59add632
...
...
@@ -250,6 +250,9 @@ static char *ppsz_align_descriptions[] =
#define VIDEO_ON_TOP_LONGTEXT N_("Always place the video window on top of " \
"other windows." )
#define SS_TEXT N_("Disable screensaver")
#define SS_LONGTEXT N_("Disable the screensaver during video playback." )
#define VIDEO_DECO_TEXT N_("Window decorations")
#define VIDEO_DECO_LONGTEXT N_( \
"If this option is disabled, VLC will avoid creating window caption, " \
...
...
@@ -990,6 +993,8 @@ vlc_module_begin();
#endif
add_bool
(
"video-on-top"
,
0
,
NULL
,
VIDEO_ON_TOP_TEXT
,
VIDEO_ON_TOP_LONGTEXT
,
VLC_FALSE
);
add_bool
(
"disable-screensaver"
,
VLC_TRUE
,
NULL
,
SS_TEXT
,
SS_LONGTEXT
,
VLC_TRUE
);
set_section
(
N_
(
"Snapshot"
)
,
NULL
);
add_directory
(
"snapshot-path"
,
NULL
,
NULL
,
SNAP_PATH_TEXT
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment