DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.
[STR New] Link: http://www.fltk.org/str.php?L2596 Version: 1.3-current Fluid generates improper callback member functions for Fl_Menu_Item-s in widget classes. In regular Fluid generated classes the callbacks access the class pointer via "o->...->parent()->user_data()". In widget classes the "->user_data()" call is not needed, in fact it is incorrect unless the programmer explicitly sets the user data to be the "this" pointer. Fluid generates the proper widget class member functions for component widgets, but not for menu items. The attached tar file contains a small example that illustrates the problem and a patch that fixes it. The patch just copies the logic to "fluid/Fl_Menu_Type.cxx" that is already done in "fluid/Fl_Widget_Type.cxx". Link: http://www.fltk.org/str.php?L2596 Version: 1.3-current
fluid-patch.tar
Description: Binary data
_______________________________________________ fltk-bugs mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk-bugs
