Left-justifying labels

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

 



How do I left-justify labels? I have labels of varying lengths packed into a vbox:

    result = gtk_vbox_new(FALSE, 0);

    sprintf(text, "Ability to learn: %ld/%ld", ag, agm);
    current_label = gtk_label_new(text);
    gtk_label_set_justify(GTK_LABEL(current_label), GTK_JUSTIFY_LEFT);
    gtk_widget_show(current_label);
    gtk_box_pack_start(GTK_BOX(result), current_label, FALSE, FALSE, 0);

[and identical (apart from the string) creation of other labels]

This shows up centered. What should I do differently?

--
++ Jonathan Hayward, jonathan.hayward@xxxxxxxxx
** To see an award-winning website with stories, essays, artwork,
** games, and a four-dimensional maze, why not visit my home page?
** All of this is waiting for you at http://JonathansCorner.com

** If you'd like a Google Mail ( gmail.com) account, please tell me!
_______________________________________________

gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list

[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux