Commit e56eff61 authored by Derk-Jan Hartman's avatar Derk-Jan Hartman

* the volume slider could only be dragged, not clicked. removed some

  useless code as well.
parent 9185c515
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* controls.m: MacOS X interface plugin * controls.m: MacOS X interface plugin
***************************************************************************** *****************************************************************************
* Copyright (C) 2002 VideoLAN * Copyright (C) 2002 VideoLAN
* $Id: controls.m,v 1.12 2003/01/23 22:57:28 hartman Exp $ * $Id: controls.m,v 1.13 2003/01/24 00:53:41 hartman Exp $
* *
* Authors: Jon Lech Johansen <jon-vl@nanocrew.net> * Authors: Jon Lech Johansen <jon-vl@nanocrew.net>
* Christophe Massiot <massiot@via.ecp.fr> * Christophe Massiot <massiot@via.ecp.fr>
...@@ -353,21 +353,12 @@ ...@@ -353,21 +353,12 @@
FIND_ANYWHERE ); FIND_ANYWHERE );
audio_volume_t i_volume; audio_volume_t i_volume;
switch( [[NSApp currentEvent] type] )
{
case NSLeftMouseDragged:
if ( p_aout != NULL ) if ( p_aout != NULL )
{ {
i_volume = (int) [sender floatValue]; i_volume = (int) [sender floatValue];
aout_VolumeSet( p_aout, i_volume * AOUT_VOLUME_STEP); aout_VolumeSet( p_aout, i_volume * AOUT_VOLUME_STEP);
vlc_object_release( (vlc_object_t *)p_aout ); vlc_object_release( (vlc_object_t *)p_aout );
} }
break;
default:
if ( p_aout != NULL ) vlc_object_release( (vlc_object_t *)p_aout );
break;
}
} }
- (void)setVolumeSlider - (void)setVolumeSlider
......
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