Re: The new tooltips API in 5 minutes [Was: Re: Whats coming in GTK+ 2.12, continued]

On Tue, 2007-06-12 at 13:59 +0200, Kristian Rietveld wrote:

>  1. If everything you need is a tooltip displaying a simple text string,
>     with or without Pango markup, the only thing you have to do is
>     just setting the "tooltip-markup" property.

just a small add-on, fresh from the commit factory:

  the tooltip-markup property now has a sister called tooltip-text,
  which will set the tooltip as plain text, escaping the eventual
  markup entities; if you're setting tooltips on widgets from external
  data sources (file names, desktop entries, whatever) you won't have
  to pass through g_markup_escape_text() first.

  both the tooltip-markup and the tooltip-text properties also have
  accessors. finally, along with gtk_tooltip_set_markup() mentioned
  below, now there's a gtk_tooltip_set_text() as well.

kudos to kris for implementing this rocking API for tooltips: it was
sorely needed and he did a wonderful job. if you're coming to GUADEC
this year, be sure to buy kris a pint!


Emmanuele Bassi,

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]