summaryrefslogtreecommitdiff
path: root/documentation/common.html
diff options
context:
space:
mode:
Diffstat (limited to 'documentation/common.html')
-rw-r--r--documentation/common.html11
1 files changed, 7 insertions, 4 deletions
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 @@
<HTML>
+<HEAD>
+ <TITLE>3 - Common Widgets and Attributes</TITLE>
+</HEAD>
<BODY>
<H1 ALIGN="RIGHT"><A NAME="common">3 - Common Widgets and Attributes</A></H1>
@@ -608,15 +611,15 @@ button-&gt;when(FL_WHEN_CHANGED | FL_WHEN_NOT_CHANGED);
pointer to the instance of your class.</P>
<PRE>
-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);
</PRE>
</TD>
</TR>