RE: gtk button - left align -how
- From: Dag Helstad <dag helstad kreatel se>
- To: "'Graham Swallow'" <Information-Cascade ntlworld com>
- Cc: gtk-list gnome org
- Subject: RE: gtk button - left align -how
- Date: Mon, 2 Dec 2002 10:37:16 +0100
> I have a vertical list of plain text buttons,
> and I want then each left aligned,
> but they are all (0.5, 0.5) centered.
>
> How can I make them left aligned?
You need to left-align the contained label of your button:
GtkWidget* button = gtk_button_new_with_label("Hello");
gtk_misc_set_alignment(GTK_MISC(GTK_BUTTON(button)->child), 0.0, 0.5);
Regards
Dag Helstad
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]