---
name: "Gtk2::Tooltips"
section: "3pm"
platform: "linux"
package: "libgtk2-perl-doc"
version: "2:1.24992-1"
release: "Debian 10 (Buster)"
platforms: ["linux"]
url: "https://new.carta.tech/Gtk2::Tooltips"
---

# Gtk2::Tooltips(3pm)

wrapper for GtkTooltips

## NAME

Gtk2::Tooltips - wrapper for GtkTooltips

## HIERARCHY

```
  Glib::Object
  +----Glib::InitiallyUnowned
       +----Gtk2::Object
            +----Gtk2::Tooltips
```

## METHODS

### tooltips = Gtk2::Tooltips-\>new

### hash\_ref = $tooltips-\>data\_get ($widget)

- •

  `$widget` (Gtk2::Widget)

Returns a hash reference with the keys: tooptips, widget, tip\_text, and tip\_private.

tooltips is the GtkTooltips group that this tooltip belongs to. widget is the GtkWidget that this tooltip data is associated with. tip\_text is a string containing the tooltip message itself.

tip\_private is a string that is not shown as the default tooltip. Instead, this message may be more informative and go towards forming a context-sensitive help system for your application.

### $tooltips-\>disable

### $tooltips-\>enable

### $tooltips-\>force\_window

### $tooltips-\>set\_tip ($widget, $tip\_text, $tip\_private=undef)

- •

  `$widget` (Gtk2::Widget)

- •

  `$tip_text` (string)

- •

  `$tip_private` (scalar)

## SEE ALSO

Gtk2, Glib::Object, Glib::InitiallyUnowned, Gtk2::Object

## COPYRIGHT

Copyright (C) 2003-2011 by the gtk2-perl team.

This software is licensed under the LGPL.  See Gtk2 for a full notice.
