[Sugar-devel] [DESIGN] Width of the TitleEntry widget
Tomeu Vizoso
tomeu at tomeuvizoso.net
Mon Mar 15 08:16:35 EDT 2010
On Mon, Mar 15, 2010 at 11:25, James Cameron <quozl at laptop.org> wrote:
> On Mon, Mar 15, 2010 at 07:49:48AM +0100, Tomeu Vizoso wrote:
>> Yes, I would set width for the text field in cells and keep the spacer
>> expanding, as if the rest of the widgets are in whole cells, the
>> spacer will also be.
>
> This doesn't work.
>
> I've done some experimentation, roughly 50 source edit and test
> iterations, purely in the code that creates the toolbar child widgets.
>
> The undesired symptom (the stop button being replaced with an overflow
> menu and an arrow), occurs as a result of geometry negotiation between
> the gtk.SeparatorToolItem and the other widgets in the gtk.ToolBar.
>
> Tomeu said:
>> Shouldn't we be setting a fixed width expressed in grid cells?
>
> Makes no difference if you do, you still get the same problem if a
> gtk.SeparatorToolItem is used and the available space is too small.
But the point of setting a fixed size is precisely to make sure that
the available space is never too small. Of course, you need to give
fixed sizes to all widgets in the toolbar.
Regards,
Tomeu
> Walter said:
>> Yes... but the horizontal-rule spacer has always violated the
>> grid. So maybe the spacer and title should be together aligned to the
>> grid.
>
> Makes no difference if you do, you still get the same problem. What
> works is to remove the expand attribute of the spacer, fix the size,
> and remove the spacer altogether if the share widget is present.
>
> Have done this, 6 cells for title, 6 cells for spacer or share with,
> one cell for keep, one cell for stop. Patch attached. Screenshots
> attached. Note how the activity title is larger than the default.
>
> Was not able to see the HIG grid constants defined anywhere in
> sugar-toolkit or sugar-base. Can you advise, Tomeu?
>
> --
> James Cameron
> http://quozl.linux.org.au/
>
> _______________________________________________
> Sugar-devel mailing list
> Sugar-devel at lists.sugarlabs.org
> http://lists.sugarlabs.org/listinfo/sugar-devel
>
>
More information about the Sugar-devel
mailing list