Re: Thoughts on GTK+ and CSS



On Thu, Jul 30, 2009 at 4:37 PM, Christian Dywan<christian lanedo com> wrote:

[...]

> You are probably aware that gtk_container_get_children () does give yo
> the positions of children. Assuming that the lack of guarantees about
> order of widgets in a container is the actual problem, maybe this can be
> reconsidered. There was a bug I can't find right now suggesting a
> policy for this containers would be recommended to follow.

We probably mean the same. GtkTable for example simply
g_list_prepend()s in gtk_table_attach() -- thus I would just not use
the word "position" here.

That said, does it sound entirely off to gtk veterans trying to
implement widget position as a read-only container child property?

Sticking to the table example above -- a table child's position could
easily be calculated using row (-count) and column (-count). From a
quick look over the code this might not be quite as easy for box
widgets, but maybe the child position could be calculated in the
allocate() run and cached inside GtkBoxChild.

- Rob


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