Re: how to align a label in GtkTable



黃慶 Kason Huang <kasonhuang kinposh com cn> writes:
> hi:
> you could try gtk_label_set_justify(GtkLabel *label,GtkJustification jtype);
> typedef enum
> {
>   GTK_JUSTIFY_LEFT,
>   GTK_JUSTIFY_RIGHT,
>   GTK_JUSTIFY_CENTER,
>   GTK_JUSTIFY_FILL
> } GtkJustification;
> 
> for example:
> gtk_label_set_justify (GTK_LABEL (label), GTK_JUSTIFY_LEFT);
> 

This is the wrong function - see the FAQ.

You want gtk_misc_set_alignment()

Havoc



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