Re: how to align a label in GtkTable
- From: Havoc Pennington <hp redhat com>
- To: 黃慶 Kason Huang <kasonhuang kinposh com cn>
- Cc: "Marco Lettere" <lettere di unipi it>, <gtk-list gnome org>
- Subject: Re: how to align a label in GtkTable
- Date: 25 Feb 2002 10:37:12 -0500
黃慶 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]