On 09.09.2009, at 10:01, Albrecht Schlosser wrote:

> Greg Ercolano wrote:
>>>     For the short term I'm going to put a comment in BOTH definitions  
>>> of
>>>     the FL_BLINE structures warning of their interdependence, as I  
>>> would
>>>     never have caught this had not SebHall mentioned it.
>>
>>   Checked in warning comments as r6853.
>>
>>   Warnings should be sufficient to prevent mistakes until either
>>   a common .H file is created, or until Fl_File_Browser is modified
>>   to no longer do this.
>
> Thanks, I think that this is an important first step. Maybe I'll  
> take a look at
> the "common header" option later.

Um, looking at BLINE:

struct FL_BLINE {       // data is in a linked list of these
   FL_BLINE* prev;
   FL_BLINE* next;
   void* data;
   Fl_Image* icon;
   short length;         // sizeof(txt)-1, may be longer than string
   char flags;           // selected, displayed
   char txt[1];          // start of allocated array
};

isn't that a subset of Fl_Widget? Adding a "selected" flag should not  
be an issue. Replacing all occurences of BLINE with Fl_Widget should  
solve the first step of converting to using true hierarchies.

Matthias

_______________________________________________
fltk-dev mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-dev

Reply via email to