Le 26/03/2012 17:28, MacArthur, Ian (SELEX GALILEO, UK) a écrit :
>> > I also believe that we already had a similar problem. This one can
>> > be fixed easily with "friend class Fl_X;" in Fl_Widget.H, like this
>> > patch:
>> >
>> > Index: FL/Fl_Widget.H
>> > ===================================================================
>> > --- FL/Fl_Widget.H (revision 9300)
>> > +++ FL/Fl_Widget.H (working copy)
>> > @@ -99,6 +99,7 @@
>> > */
>> > class FL_EXPORT Fl_Widget {
>> > friend class Fl_Group;
>> > + friend class Fl_X;
>> >
>> > Fl_Group* parent_;
>> > Fl_Callback* callback_;
>> >
>> >
>> > ... instead of making the enum public. I'm not sure which one is
>> > better though, but I'd tend to use the friend statement in this
>> > case. Anybody?
> Yes - I like the look of that better, and it should have the desired effect.
>
>
It's working.
Not sure you tolerate friend.
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk