Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
VLC
Manage
Activity
Members
Labels
Plan
Issues
4k
Issue boards
Milestones
Code
Merge requests
454
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
VideoLAN
VLC
Commits
b4ca80b9
Commit
b4ca80b9
authored
14 years ago
by
fluffysquirrels
Committed by
Jean-Baptiste Kempf
14 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Win32: added config option to disable volume keys.
Signed-off-by:
Jean-Baptiste Kempf
<
jb@videolan.org
>
parent
682ed3b4
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
modules/gui/qt4/main_interface_win32.cpp
+11
-0
11 additions, 0 deletions
modules/gui/qt4/main_interface_win32.cpp
modules/gui/qt4/qt4.cpp
+15
-0
15 additions, 0 deletions
modules/gui/qt4/qt4.cpp
with
26 additions
and
0 deletions
modules/gui/qt4/main_interface_win32.cpp
+
11
−
0
View file @
b4ca80b9
...
...
@@ -182,7 +182,18 @@ bool MainInterface::winEvent ( MSG * msg, long * result )
break
;
case
WM_APPCOMMAND
:
cmd
=
GET_APPCOMMAND_LPARAM
(
msg
->
lParam
);
bool
disable_volume_keys
=
var_InheritBool
(
p_intf
,
"qt-disable-volume-keys"
);
if
(
disable_volume_keys
&&
(
cmd
==
APPCOMMAND_VOLUME_DOWN
||
cmd
==
APPCOMMAND_VOLUME_UP
||
cmd
==
APPCOMMAND_VOLUME_MUTE
)
)
{
break
;
}
*
result
=
TRUE
;
switch
(
cmd
)
{
case
APPCOMMAND_MEDIA_PLAY_PAUSE
:
...
...
This diff is collapsed.
Click to expand it.
modules/gui/qt4/qt4.cpp
+
15
−
0
View file @
b4ca80b9
...
...
@@ -171,6 +171,13 @@ static void ShowDialog ( intf_thread_t *, int, int, intf_dialog_args_t * );
"Can be disabled to prevent burning screen." )
#define QT_BGCONE_EXPANDS_TEXT N_( "Expanding background cone or art." )
#define QT_BGCONE_EXPANDS_LONGTEXT N_( "Background art fits window's size" )
#define QT_DISABLE_VOLUME_KEYS_TEXT N_( "Ignore keyboard volume buttons." )
#define QT_DISABLE_VOLUME_KEYS_LONGTEXT N_( \
"With this option checked, the volume up, volume down and mute buttons on your " \
"keyboard will always change your system volume. With this option unchecked, the " \
"volume buttons will change VLC's volume when VLC is selected and change the " \
"system volume when VLC is not selected." )
/**********************************************************************/
vlc_module_begin
()
set_shortname
(
"Qt"
)
...
...
@@ -248,6 +255,14 @@ vlc_module_begin ()
add_bool
(
"qt-bgcone-expands"
,
false
,
QT_BGCONE_EXPANDS_TEXT
,
QT_BGCONE_EXPANDS_LONGTEXT
,
true
)
#ifdef WIN32
add_bool
(
"qt-disable-volume-keys"
/* name */
,
false
/* default value */
,
QT_DISABLE_VOLUME_KEYS_TEXT
/* text */
,
QT_DISABLE_VOLUME_KEYS_LONGTEXT
/* longtext */
,
false
/* advanced mode only */
)
#endif
add_obsolete_bool
(
"qt-blingbling"
)
/* Suppressed since 1.0.0 */
add_obsolete_integer
(
"qt-display-mode"
)
/* Suppressed since 1.1.0 */
...
...
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