GtkStatusIcon::set_tooltip

void set_tooltip(string tooltip);

Set tooltip to display for the GtkStatusIcon object. A tooltip is a short description that will be displayed to the user when they hover their mouse pointer over the icon.

$tray = new GtkStatusIcon();
$tray->set_tooltip('This is a GtkStatusIcon object');