Re: Distributing extra space to children



On Fri, Dec 17, 2010 at 9:56 PM, Ingo Krabbe <ikrabbe ask gmail com> wrote:
> On Fri, Dec 17, 2010 at 10:30:21AM -0200, José Romildo Malaquias wrote:
>> Hello.
>>
>> Is it possible to distribute any extra space a box may have to its
>> children in different proportions. For instance, suppose that there are
>> 2 children, and the first would receive 70% and the second 30% of the
>> extra space.
>>
>> Romildo
>
> Hi Romildo,
>
> this distribution can be controlled by GtkAlignment, where each children
> gets an alignment as parent and the ailgnment gets the box as its
> parent.

I dont believe that's what he means, what he wants is that extra
"expand" space be distributed unevenly among children, however
both children should fill the allocation (with alignments both
alignments still receive 50% of the extra space and the child
takes up a portion of that space, leaving an empty gap).

It does sound like an interesting feature, I wonder if there's
any way to achieve this without adding features to GtkBox.

Cheers,
        -Tristan


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