Re: [gtk-list] Re: problem with alignments



Ionutz Borcoman wrote:
> 
> I have obtained what I wanted by creating alignment with:
> 
> gtk_alignment_new( 1, 1, 0, 0)
> 
> The conclusion of this is that alignment work like this:
> - object inserted (child) in the alignment is centered in the alignment
> - first 2 parameters tells alignment how much of his parent to use
> - last 2 parameters tells to the child how to expand (aka 0.5 will make
> the child expand to 0.5 of the alignment).

I'm a liar :-/ Please excuse me for the previous posting.
What I have actually done for getting the right behaviour (to center my
fixed widget in a cell of a box, but not expand it), was by using:

gtk_alignment_new( .5, .5, 0, 0)

It is consistent with the tutorial, but I think the tutorial should
explain these parameters better (eventually with some images, like those
that explains the packaging of boxes). By the way, the tutorial itself
would be much more usefull if it would have more screenshots.

Ionutz
-- 
Mental backup in progress - Do Not Disturb!
--
http://borco-ei.eng.hokudai.ac.jp/~borco/



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