RE: Text layout in a GtkLabel
- From: "Ian Puleston" <ian underpressuredivers com>
- To: "'Milosz Derezynski'" <internalerror gmail com>
- Cc: gtk-list gnome org
- Subject: RE: Text layout in a GtkLabel
- Date: Wed, 29 Oct 2008 21:02:06 -0700
> -----Original Message-----
> From: Milosz Derezynski [mailto:internalerror gmail com]
> Sent: Wednesday, October 29, 2008 5:24 PM
>
> 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.
Thanks, I'll look into using gtk_label_get_layout().
But on the suggestion to use gtk_label_set_markup, that's actually what I meant below when I said "with Pango meta formatting" (sorry, was working on something else and got the terminology confused, I meant markup formatting). From what I see of the Pango Markup language it doesn't seem to provide for formatting the layout, just for character formatting, or am I missing something?
Ian
> 2008/10/30 Ian Puleston <ian underpressuredivers com>:
> > 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.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]