RE: gtk button - left align -how



> 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]