summaryrefslogtreecommitdiff
path: root/FL
diff options
context:
space:
mode:
authorMichael R Sweet <michael.r.sweet@gmail.com>2007-02-08 23:04:20 +0000
committerMichael R Sweet <michael.r.sweet@gmail.com>2007-02-08 23:04:20 +0000
commit6e9a1630357a21c6ef6357cdde324ae89a565826 (patch)
treeefc85bf8e365b2da7f6dd91e56f78fb5e4574604 /FL
parent057e542c395a8cc5391ee57a215c2c644a2fbd0b (diff)
Add handler for thread messages (STR #1536)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5683 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'FL')
-rw-r--r--FL/Fl.H2
1 files changed, 2 insertions, 0 deletions
diff --git a/FL/Fl.H b/FL/Fl.H
index 1d4f67995..8c07365e6 100644
--- a/FL/Fl.H
+++ b/FL/Fl.H
@@ -78,6 +78,7 @@ public: // should be private!
static void damage(int d) {damage_ = d;}
static void (*idle)();
+ static void (*awake_cb)(void *);
static const char* scheme_;
static Fl_Image* scheme_bg_;
@@ -266,6 +267,7 @@ public:
static void lock();
static void unlock();
static void awake(void* message = 0);
+ static void set_awake_cb(void (*cb)(void *)) { awake_cb = cb; }
static void* thread_message();
// Widget deletion: