Browse Source

Clear status message after 5 seconds.

tags/non-sequencer-v1.9.4
Jonathan Moore Liles 16 years ago
parent
commit
70d576a6e4
1 changed files with 10 additions and 0 deletions
  1. +10
    -0
      gui/draw.C

+ 10
- 0
gui/draw.C View File

@@ -217,6 +217,14 @@ gui_draw_shape ( int x, int y, int w, int h, int bw, int shape, int state, int f
}

extern UI *ui;

static
void
clear_status ( void *arg )
{
ui->status->value( "" );
}

/** inform the user of something via a status bar */
void
gui_status ( const char *fmt, ... )
@@ -233,4 +241,6 @@ gui_status ( const char *fmt, ... )
}

ui->status->value( pat );

Fl::add_timeout( 5.0f, clear_status );
}

Loading…
Cancel
Save