Re: grid widget (was Re: possible removal of GtkWrapBox)
- From: Matthias Clasen <matthias clasen gmail com>
- To: Tristan Van Berkom <tristanvb openismus com>
- Cc: gtk-devel-list gnome org, Havoc Pennington <hp pobox com>
- Subject: Re: grid widget (was Re: possible removal of GtkWrapBox)
- Date: Mon, 11 Oct 2010 00:01:05 -0400
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]