Re: [gtk-list] justifying a label




Labels can be justified using the

gtk_misc_set_alignment.  The second parameter determines -x-
justification.  For instance,

gtk_misc_set_alignment (GTK_MISC (label), 0, 0);
is left justified

gtk_misc_set_alignment (GTK_MISC (label), .5, 0);
is centered

gtk_misc_set_alignment (GTK_MISC (label), 1, 0);
is right justified

 -Eric

---Frédéric Baumann <fbaumann@worldnet.fr> wrote:
>
> 
> I would like to have some GtkLabels be right or left justified,
> instead of centered.
> 
> There seems to be a function :
> 
> gtk_label_set_justify (label, GTK_JUSTIFY_...) 
> 
> but it does not do anything. The labels are still centerd
> 
> How can I do ?? (I am using GTK 1.0.4).
> 
> Thank you in advance,
> Frederic
> 
> -- 
> ________________________________________________________________
> E-mail : fbaumann@worldnet.fr
> Web : http://home.worldnet.fr/~fbaumann                 
> 
> -- 
> To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com <
/dev/null
> 
> 

_________________________________________________________
DO YOU YAHOO!?
Get your free @yahoo.com address at http://mail.yahoo.com



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