Gtk2::Tooltips(3)
π 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 theGtkTooltipsgroup that this tooltip belongs to)widgetβ theGtkWidgetthat this tooltip data is associated withtip_textβ a string holding the tooltip message itselftip_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 toundef
π SEE ALSO π
go read these too, they're all in the friend group:
Gtk2Glib::ObjectGlib::InitiallyUnownedGtk2::Object
π COPYRIGHT π
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
- fedora 43: perl-Gtk2 1.24993-23.fc43 Β· LicenseRef-Callaway-LGPLv2+
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms