Clear status message after 5 seconds.

pull/3/head
Jonathan Moore Liles 2008-02-12 12:29:00 -06:00
parent 6447678a08
commit 70d576a6e4
1 changed files with 10 additions and 0 deletions

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 );
}