> If the callback registration function doesn't take a data pointer, you > have to store it in a global variable. Or you can register a single C function as callback and then map widgets to Lua handlers via a table in the registry for instance.