Commit 0d081737 authored by Jean-Paul Saman's avatar Jean-Paul Saman

Properly update the right ToolTip on the volumebar.

parent da305a57
...@@ -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;
...@@ -1431,8 +1431,6 @@ void wxVolCtrl::UpdateVolume() ...@@ -1431,8 +1431,6 @@ void wxVolCtrl::UpdateVolume()
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();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment