Re: convenience API for applying PangoAttributes to a GtkLabel
- From: Sven Neumann <sven gimp org>
- To: Ross Burton <ross burtonini com>
- Cc: gtk-devel-list gnome org
- Subject: Re: convenience API for applying PangoAttributes to a GtkLabel
- Date: Tue, 13 Mar 2007 09:00:03 +0100
Hi,
On Tue, 2007-03-13 at 07:52 +0000, Ross Burton wrote:
> As the arguments are a list of (PangoAttrType, value) tuples would it
> makes sense to terminate with PANGO_ATTR_INVALID (which is 0), rather
> than -1?
The current implementation allows both 0 and -1 to terminate the list. I
don't have a strong opinion which one should be preferred but it would
be nice if both could be accepted since that would make it easier for us
to deprecate the gimp variant at some point.
Behdad is probably right that this code should be in Pango. But it would
still be convenient if GTK+ could wrap the call to
pango_attr_list_new_something() into gtk_label_set_attr_list() or
similar.
Sven
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]