Gtk2::Tooltips(3)

πŸ“¦
version 1.24993 Β· 2 versions
, in fedora 43

πŸ’… Gtk2::Tooltips ✨

okay so bestie, let me put you onto Gtk2::Tooltips β€” it's the lil wrapper for GtkTooltips, the thing that makes lil hover-y messages pop up when you vibe your mouse over a widget. yes queen, the classic "wait what does this button do" energy. πŸŽ€

This page lives in the User Contributed Perl Documentation corner of the manual, and the module name is literally Gtk2::Tooltips. say it with me. slay.


🌸 HIERARCHY 🌸

the family tree, and yes it's giving ancestry.com:

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

so like, Gtk2::Tooltips is a Gtk2::Object, which is a Glib::InitiallyUnowned, which is a Glib::Object. generational icon behavior honestly. πŸ‘‘


✨ METHODS ✨

πŸ¦‹ tooltips = Gtk2::Tooltips->new

constructor time!! new tooltips object, fresh out the box, no notes. πŸ’–


πŸŽ€ hash_ref = $tooltips->data_get ($widget)

  • $widget (Gtk2::Widget)

okay so you hand it a widget and it hands you back a hash reference with these keys, no cap:

  • tooptips β€” yes bestie, that's spelled exactly like that, typo and all, i don't make the rules, i just report them πŸ’€ (it's the GtkTooltips group that this tooltip belongs to)
  • widget β€” the GtkWidget that this tooltip data is associated with
  • tip_text β€” a string holding the tooltip message itself
  • tip_private β€” 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. it's the secret lore. the director's cut. πŸ™ˆ

🌈 $tooltips->disable

turns it off. muted. do not perceive me. 🀫


⭐ $tooltips->enable

turns it back on. we're so back. πŸ”₯


πŸ’œ $tooltips->force_window

force window. it does the thing. (that's genuinely all the manpage gives us, bestie, i'm not gonna make up lore 🫢)


πŸ“ $tooltips->set_tip ($widget, $tip_text, $tip_private=undef)

the main character method fr fr. sets the tip on a widget.

  • $widget (Gtk2::Widget)
  • $tip_text (string)
  • $tip_private (scalar) β€” optional, defaults to undef

πŸ‘€ SEE ALSO πŸ‘€

go read these too, they're all in the friend group:

  • Gtk2
  • Glib::Object
  • Glib::InitiallyUnowned
  • Gtk2::Object

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

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

legal said keep the license intact and i said periodt πŸ’…

okay and that's the whole page!! this manual was served up by perl v5.42.0, dated 2025-07-25, and it is officially Gtk2::Tooltips(3). mwah. go forth and tooltip responsibly, bestie πŸ§šπŸ’–

πŸ“¦ where this page comes from