From 9e3f8a1db6028935ea640c00e15674e1a7456530 Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Sun, 29 Oct 2006 14:16:03 +0000 Subject: Documentation fixes. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5533 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- documentation/common.html | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'documentation/common.html') diff --git a/documentation/common.html b/documentation/common.html index 421ea723c..a759bd5ff 100644 --- a/documentation/common.html +++ b/documentation/common.html @@ -1,4 +1,7 @@ + + 3 - Common Widgets and Attributes +

3 - Common Widgets and Attributes

@@ -608,15 +611,15 @@ button->when(FL_WHEN_CHANGED | FL_WHEN_NOT_CHANGED); pointer to the instance of your class.

-class foo {
-  void my_callback(Widget *);
-  static void my_static_callback(Widget *w, foo *f) { f->my_callback(w); }
+class Foo {
+  void my_callback(Fl_Widget *w);
+  static void my_static_callback(Fl_Widget *w, void *f) { ((Foo *)f)->my_callback(w); }
   ...
 }
 
 ...
 
-w->callback(my_static_callback, this);
+w->callback(my_static_callback, (void *)this);
 
-- cgit v1.2.3