Re: sizing
- From: Paul Barton-Davis <pbd Op Net>
- To: "Billy N. Patton" <bpatton dal asp ti com>
- Cc: Gtk users <gtk-list gnome org>
- Subject: Re: sizing
- Date: Wed, 06 Dec 2000 19:06:21 -0500
>gtk_widget_set_usize(status_bar,-1,30);
>
>THe -1 is just a guess that would put it to wide as possible.
No, -1 means "i am not specifying a minimum size". You need to know
that its never been clear what the "u" in "usize" really means, but
its best to think of the function as gtk_widget_set_minimum_size().
To get the effect you want, pack the widget into a box with the
correct orientation and set the pad/expand options to FALSE. Then pack
that box into the next level box. At least, thats what i've done in
thousands of line of GTK code, so if there's a better way, i want to
hear about it :)
--p
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]