Small addition:
> void cb_smth(Fl_Widget*,void *);
>
> Fl_Menu_Item itm[]={
> ...
> {"abra",0,(Fl_Callback*)cb_smth,(void *)1},
> ...
you wouldn't even need the cast (Fl_Callback*) here, because
your callback function then matches Fl_Callback anyway.
-> {"abra",0,cb_smth,(void *)1},
...
What I want to say: you are writing (appl.) code that uses a
different callback prototype than given for Fl_Menu_Item, then
you need a cast, and then the compiler complains... ;-)
But again, maybe I'm missing something?
Albrecht
_______________________________________________
fltk-dev mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-dev