// widget
$vbox->add($text = new GtkLabel('Widget Tooltip'));
$text->set_has_tooltip(true);
$text->connect('query-tooltip', 'widgettip');
// custom tooltip area
$vbox->add($text = new GtkLabel('No tip on padding'));
$text->set_padding(15, 25);
$text->set_has_tooltip(true);
$text->connect('query-tooltip', 'textonlytip');
// be brave, use your own tips window
$vbox->add($text = new GtkLabel('Different Tooltips Window'));
$tipswindow = new GtkWindow(Gtk::WINDOW_POPUP);
$content = new GtkLabel('I feel pretty');
$tipswindow->add($content);
$content->show();
$text->set_tooltip_window($tipswindow);
$text->connect('query-tooltip', 'redboxtip');
// trigger tooltip query for the display on button press
$vbox->add($button = new GtkButton('Trigger Tooltip passing Display'));
$button->connect_simple('clicked', array('GtkTooltip', 'trigger_tooltip_query'), GdkDisplay::get_default());
$button->set_has_tooltip(true);
$button->connect('query-tooltip', 'texttip');
// trigger tooltip query for a display where the widget is on button press
$vbox->add($button = new GtkButton('Trigger Tooltip passing Widget'));
$button->connect_simple('clicked', array($label, 'trigger_tooltip_query'));
$button->set_has_tooltip(true);
$button->connect('query-tooltip', 'texttip');
/* Generic liststore for the next tests */
$store = new GtkListStore(Gobject::TYPE_STRING, Gobject::TYPE_STRING, GdkPixbuf::gtype);
$store->append(array('foo', 'tip1', $window->render_icon(Gtk::STOCK_OPEN, Gtk::ICON_SIZE_DIALOG)));
$store->append(array('bar', 'tip2', $window->render_icon(Gtk::STOCK_CLOSE, Gtk::ICON_SIZE_DIALOG)));