diff --git a/doc/first-steps.md b/doc/first-steps.md index a52e48a0..dcb0623f 100644 --- a/doc/first-steps.md +++ b/doc/first-steps.md @@ -510,17 +510,17 @@ clicked by a keyboard or mouse, it sends the string "clicked". A signal handler explicitly provided by Widget, in the form of a callback function or a callback method, can react to such a signal. -A callback function is always structured as follows: +A callback function has no return value can have various arguments: ```cpp -void cb_function (FWidget* w, FDataPtr data) +void cb_function (FWidget* w, int* i, double* d, ...) {...} ``` The structure of a callback method is the same: ```cpp -void classname::cb_methode (FWidget* w, FDataPtr data) +void classname::cb_methode (FWidget* w, int* i, double* d, ...) {...} ``` diff --git a/test/Makefile.am b/test/Makefile.am index f375ea75..27420c4d 100644 --- a/test/Makefile.am +++ b/test/Makefile.am @@ -50,6 +50,7 @@ fpoint_test_SOURCES = fpoint-test.cpp frect_test_SOURCES = frect-test.cpp TESTS = fobject_test \ + fcallback_test \ fmouse_test \ fkeyboard_test \ ftermdata_test \