Re: convenience API for applying PangoAttributes to a GtkLabel
- From: Bastien Nocera <hadess hadess net>
- To: Sven Neumann <sven gimp org>
- Cc: gtk-devel-list gnome org
- Subject: Re: convenience API for applying PangoAttributes to a GtkLabel
- Date: Mon, 12 Mar 2007 22:11:49 +0000
Hey Sven,
On Mon, 2007-03-12 at 23:09 +0100, Sven Neumann wrote:
> Hi,
>
> libgimpwidgets includes an API for conveniently apply PangoAttributes to
> a GtkLabel and I wonder if I should propose it for inclusion in GTK+:
>
> http://developer.gimp.org/api/2.0/libgimpwidgets/libgimpwidgets-GimpWidgets.html#gimp-label-set-attributes
>
> It is IMO more convenient than using g_strdup_printf() to embed a string
> into PangoMarkup. Here's a short example to make a label large and bold:
That's very nice, but the worst use of markup-in-message is caused by
glade/libglade. It would be nice if this could be taken into
consideration as well:
http://bugzilla.gnome.org/show_bug.cgi?id=97061
For the sake of this 5-year old bug.
--
Bastien Nocera <hadess hadess net>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]