[Sugar-devel] [PATCH] Remove hippo from the frame

Daniel Drake dsd at laptop.org
Sun Sep 18 13:29:27 EDT 2011


On Sun, Sep 18, 2011 at 6:14 PM, Marco Pesenti Gritti <marco at marcopg.org> wrote:
> On 18 Sep 2011, at 13:47, Daniel Drake <dsd at laptop.org> wrote:
>> +        # ask not to be collapsed if possible
>> +        self.set_size_request(4 * style.GRID_CELL_SIZE, -1)
>
> This sucks a bit. Doesn't packing the toolbar with expand true work?

If expand=True, the zoom toolbar gets given one half of the frame
space, with the other half used by the activity icon list. This
results in the zoom toolbar being shown in the top left, followed by a
big uncomfortable gap, then the activity icon list mid way through the
frame.

This matches the GTK+ documentation which says:
expand : 	TRUE if the new child is to be given extra space allocated
to box. The extra space will be divided evenly between all children of
box that use this option

In this case we don't want even division.

GTK3 may indeed be better, with widgets now able to provide both a
"natural" and a "minimum" size in size requests, rather than just the
single measurement they have now.

Daniel


More information about the Sugar-devel mailing list