Re: The HIG and Layout



On Wed, 2003-10-22 at 20:47, Jacob Kolding wrote:
On Thu, 2003-10-23 at 01:25, iain wrote:
On Wed, 2003-10-22 at 23:03, Jacob Kolding wrote:

http://developer.gnome.org/projects/gup/hig/1.0/images/layout2.png

How many Frames Tables HBoxes VBoxes in what order and with what spacing
and border width are required to obtain the above layout?


First of all Thanks for the reply!

Its a Vbox with a label ("Actions") and an hbox in it.
the hbox then has a label spacer which is just 4 spaces "    "

So this is the hack to move it all in towards the right.
Isn't their a "cleaner" way to do it?

Well, it's marginally cleaner (and definitely more HIG compliant) to use
an empty widget (like a GtkAlignment) instead of the label and do
gtk_widget_set_size_request (alignment, 12, -1);

In GTK+-2.4, you'll be able to replace the HBox with an alignment and
use gtk_alignment_set_padding (alignment, 12, 0, 0, 0);

Regards,
                                                Owen





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