These are the little text strings that pop up when
you leave your pointer over a button or other widget for a few seconds.
They are easy to use, so I will just explain them without giving an
example.
Widgets that do not receive events (widgets that do not have their own
window) will not work with tooltips.
You only need to construct one Tooltip object for a set of tooltips as
it can be used to create multiple tooltips:
Once you have created a new tooltip, and the widget you wish to use it
on, simply use this call to set it:The first argument is the widget you wish to have
this tooltip pop up for, and the second the text you wish it to say.
The
last argument is a text string that can be used to implement
context sensitive help. For now, it is not enabled in GTK so you can
just ignore it.
Here's a short example: