From 49b8502b834313ba87133ce803b820c2c4fbbbe2 Mon Sep 17 00:00:00 2001 From: Bill Spitzak Date: Wed, 5 Jan 2000 03:17:28 +0000 Subject: Added Fl.H required by an inline function if Fl_Repeat_Button.H Fl_add_idle adds new functions to the end of the queue ring, rather than the start, so they are executed in the order added, and a callback that adds itself does not prevent others from being called. Fluid lets you type in code that starts with '#' for cpp directives. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@969 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/Fl_add_idle.cxx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/Fl_add_idle.cxx b/src/Fl_add_idle.cxx index 9527ce8a0..14c25b979 100644 --- a/src/Fl_add_idle.cxx +++ b/src/Fl_add_idle.cxx @@ -1,5 +1,5 @@ // -// "$Id: Fl_add_idle.cxx,v 1.4 1999/01/07 19:17:30 mike Exp $" +// "$Id: Fl_add_idle.cxx,v 1.4.2.1 2000/01/05 03:17:28 bill Exp $" // // Idle routine support for the Fast Light Tool Kit (FLTK). // @@ -56,7 +56,6 @@ void Fl::add_idle(void (*cb)(void*), void* data) { if (first) { last->next = p; p->next = first; - first = p; } else { first = last = p; p->next = p; @@ -85,5 +84,5 @@ void Fl::remove_idle(void (*cb)(void*), void* data) { } // -// End of "$Id: Fl_add_idle.cxx,v 1.4 1999/01/07 19:17:30 mike Exp $". +// End of "$Id: Fl_add_idle.cxx,v 1.4.2.1 2000/01/05 03:17:28 bill Exp $". // -- cgit v1.2.3