Figure Figure
11 shows all five box-packing techniques together.
(They are packed into a homogeneous GtkVBox with
fill set to TRUE
and an interchild spacing of two pixels.) This should
give you a sense of their relative effects. Keep in
mind that you can also tweak the padding and spacing parameters, to increase or
decrease the amount of blank space between widgets.
However, you can easily create an ugly layout by using
inconsistent spacing---it's a good idea to try to keep
widgets "lined up" and consistently spaced.
A final point: notice that the expand and fill parameters are only relevant
when a box's size allocation is larger than its size
request. That is, these parameters determine how extra space is distributed.
Typically, extra space appears when a user resizes a
window to make it larger than its default size. Thus,
you should always try resizing your windows to be sure
your boxes are packed correctly.