summaryrefslogtreecommitdiff
path: root/src/Fl_add_idle.cxx
diff options
context:
space:
mode:
authorBill Spitzak <spitzak@gmail.com>2000-01-05 03:17:28 +0000
committerBill Spitzak <spitzak@gmail.com>2000-01-05 03:17:28 +0000
commit49b8502b834313ba87133ce803b820c2c4fbbbe2 (patch)
tree9e647a9444604034a1fe293407d0d7d623a3410d /src/Fl_add_idle.cxx
parentc0cdc569268ac94bc8ae000ab93b5f98515760d3 (diff)
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
Diffstat (limited to 'src/Fl_add_idle.cxx')
-rw-r--r--src/Fl_add_idle.cxx5
1 files changed, 2 insertions, 3 deletions
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 $".
//