Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-2-2
Commits
53dfe2b3
Commit
53dfe2b3
authored
Feb 23, 2012
by
David Fuhrmann
Committed by
Felix Paul Kühne
Feb 23, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
macosx: proper gui update when toogle mute state
Signed-off-by:
Felix Paul Kühne
<
fkuehne@videolan.org
>
parent
1e042a44
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
modules/gui/macosx/MainWindow.m
modules/gui/macosx/MainWindow.m
+7
-5
No files found.
modules/gui/macosx/MainWindow.m
View file @
53dfe2b3
...
...
@@ -750,10 +750,6 @@ static VLCMainWindow *_o_sharedInstance = nil;
else
if
(
sender
==
o_volume_down_btn
)
{
[[
VLCCoreInteraction
sharedInstance
]
mute
];
[
o_volume_sld
setIntValue
:
0
];
BOOL
b_mute
=
!
[[
VLCCoreInteraction
sharedInstance
]
isMuted
];
[
o_volume_sld
setEnabled
:
b_mute
];
[
o_volume_up_btn
setEnabled
:
b_mute
];
}
else
[[
VLCCoreInteraction
sharedInstance
]
setVolume
:
AOUT_VOLUME_MAX
];
...
...
@@ -1096,13 +1092,19 @@ static VLCMainWindow *_o_sharedInstance = nil;
playlist_t
*
p_playlist
=
pl_Get
(
VLCIntf
);
i_volume
=
aout_VolumeGet
(
p_playlist
);
BOOL
b_muted
=
[[
VLCCoreInteraction
sharedInstance
]
isMuted
];
if
(
i_volume
!=
i_lastShownVolume
)
if
(
!
b_muted
)
{
i_lastShownVolume
=
i_volume
;
[
o_volume_sld
setIntValue
:
i_volume
];
[
o_fspanel
setVolumeLevel
:
i_volume
];
}
else
[
o_volume_sld
setIntValue
:
0
];
[
o_volume_sld
setEnabled
:
!
b_muted
];
[
o_volume_up_btn
setEnabled
:
!
b_muted
];
}
-
(
void
)
updateName
...
...
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