Re: Order of children in Box



On 25/02/2008, Jeffrey Barish <jeff_barish earthlink net> wrote:
jcupitt gmail com wrote:
 > Generally the most recently added child of any
 > gtkcontainer is at the head of the list.
 >

However ...
you can't really rely on it 100%.

Yes, I too have observed this behavior when I use foreach or get_children.
 I was wondering whether I could count on it.  You say that I cannot.  If I
 cannot count on these functions to preserve order, I am wondering what
 function I can count on.  Would there not have to be a function for getting

You're pretty safe with gtkbox I would think. I just mean that
subclasses can change this behaviour and could break your code some
time in the future. But you ought to be OK.

John



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]