Re: label markup
- From: Havoc Pennington <hp redhat com>
- To: gtk-devel-list gnome org
- Subject: Re: label markup
- Date: 22 Oct 2000 09:29:55 -0400
Havoc Pennington <hp redhat com> writes:
> "This is some <b>markup</b>"
>
I just realized that this isn't just convenience functionality; it's
actually necessary if someone wants to use labels with bold text, etc.
The current way of doing it is:
attr = pango_attribute_weight_new ();
attr->start_index = 10;
attr->end_index = 20;
list = pango_attr_list_new ();
pango_attr_list_change (list, attr);
...
which is totally broken from an i18n standpoint, since the start/end
indexes are hardcoded. The position of the <b></b> tags needs to be
in the string itself so it can be translated.
Havoc
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]