You can use gtk_label_set_markup() and set the internal Layout of the Label using Pango markup, or use gtk_label_get_layout() (it's safe to call this function without realizing the widget first); that way actually have the Label's/a PangoLayout and can modify it as you were used to. There's also gtk_label_get/set_attributes() by which you don't need to get the actual Layout but that runs down to the same thing. M. 2008/10/30 Ian Puleston <ian@xxxxxxxxxxxxxxxxxxxxxxx>: > > Hi, > > > > I've implemented a help mechanism where clicking on a help icon pops up a > help message, and am using a GtkMessageDialog to do it. It's pretty simple > and is working fine, except that in one case I want to display a numbered > list and to make it look neat I want to have all the text apart from the > numbers indented. But I can't find an easy way to do that with a GtkLabel > which is what the GtkMessageDialog uses to display the text. > > > > The GtkLabel supports setting a Pango attributes list or text with Pango > meta formatting, but that is all character formatting. I think I could > achieve what I want using a Pango layout, but I can't see any way to use > that with a GtkLabel. > > > > Anyone know if there's any way to format the layout of text in a GtkLabel? > > Otherwise, what would be the best widget to use to display text with a > layout like this? > > Ian > > _______________________________________________ > gtk-list mailing list > gtk-list@xxxxxxxxx > http://mail.gnome.org/mailman/listinfo/gtk-list > > -- Please note that according to the German law on data retention, information on every electronic information exchange with me is retained for a period of six months. [Bitte beachten Sie, dass dem Gesetz zur Vorratsdatenspeicherung zufolge jeder elektronische Kontakt mit mir sechs Monate lang gespeichert wird.] _______________________________________________ gtk-list mailing list gtk-list@xxxxxxxxx http://mail.gnome.org/mailman/listinfo/gtk-list