Migrating from GtkTooltips to GtkTooltip

GTK+ 2.12 brings a completely new tooltip implementation which allows many things that were not possible with the old GtkTooltips interface. The new possibilities are explained in more detail in the section about GtkTooltip.

A number of complications of the old API have been removed:

Here is an example of setting a tooltip on a widget with the old API:

1

Using the new tooltips API, it is no longer necessary to create an object:

1

Similarly, setting a tooltip on a GtkToolItem gets simplified from

1

to

1