From 70d576a6e40e51a20176e2bd05fb80ed0bb2061e Mon Sep 17 00:00:00 2001 From: Jonathan Moore Liles Date: Tue, 12 Feb 2008 12:29:00 -0600 Subject: [PATCH] Clear status message after 5 seconds. --- gui/draw.C | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/gui/draw.C b/gui/draw.C index 491913e..7e99453 100644 --- a/gui/draw.C +++ b/gui/draw.C @@ -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 ); }