Browse Source

Improve mouse cursor handling.

tags/non-daw-v1.1.0
Jonathan Moore Liles 17 years ago
parent
commit
01a1e5846c
2 changed files with 7 additions and 0 deletions
  1. +5
    -0
      Audio_Track.C
  2. +2
    -0
      Region.C

+ 5
- 0
Audio_Track.C View File

@@ -79,8 +79,13 @@ Audio_Track::handle ( int m )


printf( "pasted file \"%s\"\n", file ); printf( "pasted file \"%s\"\n", file );


fl_cursor( FL_CURSOR_WAIT );
Fl::check();

Audio_File *c = Audio_File::from_file( file ); Audio_File *c = Audio_File::from_file( file );


fl_cursor( FL_CURSOR_DEFAULT );

if ( ! c ) if ( ! c )
{ {
free( file ); free( file );


+ 2
- 0
Region.C View File

@@ -225,10 +225,12 @@ Region::handle ( int m )
{ {
case FL_ENTER: case FL_ENTER:
_current = true; _current = true;
Track_Widget::handle( m );
redraw(); redraw();
break; break;
case FL_LEAVE: case FL_LEAVE:
_current = false; _current = false;
Track_Widget::handle( m );
redraw(); redraw();
break; break;
case FL_PUSH: case FL_PUSH:


Loading…
Cancel
Save