Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
0d081737
Commit
0d081737
authored
Aug 24, 2005
by
Jean-Paul Saman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Properly update the right ToolTip on the volumebar.
parent
da305a57
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
modules/gui/wxwidgets/interface.cpp
modules/gui/wxwidgets/interface.cpp
+7
-6
No files found.
modules/gui/wxwidgets/interface.cpp
View file @
0d081737
...
@@ -89,7 +89,7 @@ public:
...
@@ -89,7 +89,7 @@ public:
void
OnChange
(
wxMouseEvent
&
event
);
void
OnChange
(
wxMouseEvent
&
event
);
void
UpdateVolume
();
void
UpdateVolume
();
private:
private:
DECLARE_EVENT_TABLE
()
DECLARE_EVENT_TABLE
()
wxVolCtrl
*
gauge
;
wxVolCtrl
*
gauge
;
...
@@ -99,7 +99,7 @@ public:
...
@@ -99,7 +99,7 @@ public:
};
};
BEGIN_EVENT_TABLE
(
VLCVolCtrl
,
wxControl
)
BEGIN_EVENT_TABLE
(
VLCVolCtrl
,
wxControl
)
EVT_PAINT
(
VLCVolCtrl
::
OnPaint
)
EVT_PAINT
(
VLCVolCtrl
::
OnPaint
)
/* Mouse events */
/* Mouse events */
EVT_LEFT_UP
(
VLCVolCtrl
::
OnChange
)
EVT_LEFT_UP
(
VLCVolCtrl
::
OnChange
)
...
@@ -1426,13 +1426,11 @@ void wxVolCtrl::UpdateVolume()
...
@@ -1426,13 +1426,11 @@ void wxVolCtrl::UpdateVolume()
{
{
audio_volume_t
i_volume
;
audio_volume_t
i_volume
;
aout_VolumeGet
(
p_intf
,
&
i_volume
);
aout_VolumeGet
(
p_intf
,
&
i_volume
);
int
i_gauge_volume
=
i_volume
*
200
*
2
/
AOUT_VOLUME_MAX
;
int
i_gauge_volume
=
i_volume
*
200
*
2
/
AOUT_VOLUME_MAX
;
if
(
i_gauge_volume
==
GetValue
()
)
return
;
if
(
i_gauge_volume
==
GetValue
()
)
return
;
SetValue
(
i_gauge_volume
);
SetValue
(
i_gauge_volume
);
SetToolTip
(
wxString
::
Format
((
wxString
)
wxU
(
_
(
"Volume"
))
+
wxT
(
" %d"
),
i_gauge_volume
/
2
)
);
}
}
#if defined(__WXGTK__)
#if defined(__WXGTK__)
...
@@ -1474,6 +1472,9 @@ void VLCVolCtrl::UpdateVolume()
...
@@ -1474,6 +1472,9 @@ void VLCVolCtrl::UpdateVolume()
gauge
->
UpdateVolume
();
gauge
->
UpdateVolume
();
int
i_volume
=
gauge
->
GetValue
();
int
i_volume
=
gauge
->
GetValue
();
wxWindow
::
SetToolTip
(
(
wxString
)
wxU
(
_
(
"Volume"
))
+
wxString
::
Format
(
wxT
(
" %d"
),
i_volume
/
2
)
);
if
(
!!
i_volume
==
!
b_mute
)
return
;
if
(
!!
i_volume
==
!
b_mute
)
return
;
b_mute
=
!
b_mute
;
b_mute
=
!
b_mute
;
Refresh
();
Refresh
();
...
...
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