Minor cleanup.
This commit is contained in:
parent
235993b7b3
commit
24f935d957
|
@ -224,7 +224,7 @@ Sequence_Widget::handle ( int m )
|
|||
case FL_RELEASE:
|
||||
if ( _drag )
|
||||
{
|
||||
length_drag();
|
||||
end_drag();
|
||||
_log.release();
|
||||
}
|
||||
|
||||
|
|
|
@ -253,7 +253,7 @@ public:
|
|||
_r = new Range( _range );
|
||||
}
|
||||
|
||||
void length_drag ( void )
|
||||
void end_drag ( void )
|
||||
{
|
||||
_range = *_r;
|
||||
delete _r;
|
||||
|
@ -263,33 +263,6 @@ public:
|
|||
_drag = NULL;
|
||||
}
|
||||
|
||||
/* void */
|
||||
/* start ( nframes_t where ) */
|
||||
/* { */
|
||||
|
||||
/* if ( ! selected() ) */
|
||||
/* { */
|
||||
/* redraw(); */
|
||||
/* _r->start = where; */
|
||||
/* } */
|
||||
/* else */
|
||||
/* { */
|
||||
/* long d = where - _r->start; */
|
||||
|
||||
/* for ( list <Sequence_Widget *>::iterator i = _selection.begin(); i != _selection.end(); i++ ) */
|
||||
/* { */
|
||||
/* (*i)->redraw(); */
|
||||
|
||||
/* if ( d < 0 ) */
|
||||
/* (*i)->_r->start -= 0 - d; */
|
||||
/* else */
|
||||
/* (*i)->_r->start += d; */
|
||||
|
||||
/* } */
|
||||
/* } */
|
||||
/* } */
|
||||
|
||||
|
||||
int dispatch ( int m );
|
||||
|
||||
Fl_Widget * parent ( void ) const { return _sequence; }
|
||||
|
|
Loading…
Reference in New Issue