Re: grid widget (was Re: possible removal of GtkWrapBox)



On Sun, Oct 10, 2010 at 4:23 AM, Tristan Van Berkom
<tristanvb openismus com> wrote:
>
>  - It seems you are storing the allocated/requested sizes in your
>    GridLine structs, I guess this is convenient for your code's clarity
>    but might be confusing to some readers. I think its important
>    to at least comment/note that these allocated sizes must be
>    reconstructed for every request/allocation, in other words the
>    allocated sizes cannot be relied upon in a potential future "draw"
>    implementation, nor can the allocate method rely on sizes
>    resolved in previous request calls.

I've now moved all per-request data to a stack-allocated request
struct thats entirely separate from the grid struct itself. That
should address your concern, I think.


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