Ian MacArthur wrote:
>
> DO NOT REPLY TO THIS MESSAGE.  INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.
>
> [STR New]
>
> Link: http://www.fltk.org/str.php?L2338
> Version: 1.3-feature
>
>
> Also... is "root" maybe a misleading name?
>
> On X11, that usually means the root window, which is usually the desktop
> itself.
> I think this will return the top-level application window.
>
> In which case somehting like "top_window" might be a better name?
>
> Or am I missing the point?

Thanks for point it, when I created this function it was based on the 
need from callback functions to to recover the root/top-level window to 
access it or other neighbor widgets.

I agree that top_window (meaning the Fl_Group root parent of all 
parent.parent).

Fl_Group *Fl_Widget::top_window();

Also I was returning NULL when no parent is found thinking that could 
exist any widget without parent and not being a top-window (maybe it 
doesn't exist).
_______________________________________________
fltk-dev mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-dev

Reply via email to