Gtk2::LinkButton(3)

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

✨ Gtk2::LinkButton ✨

okay bestie, so this page is from the User Contributed Perl Documentation corner of the world, and it's all about Gtk2::LinkButton β€” which is literally just a wrapper for GtkLinkButton πŸ’…

It's a button. That's a link. That's it, that's the whole vibe. πŸŽ€


🌸 NAME 🌸

Gtk2::LinkButton β€” a wrapper for GtkLinkButton


πŸ¦‹ HIERARCHY πŸ¦‹

ok so the family tree goes like this, and yes she comes from a long line of ancestors, main character energy honestly:

Glib::Object
+----Glib::InitiallyUnowned
     +----Gtk2::Object
          +----Gtk2::Widget
               +----Gtk2::Container
                    +----Gtk2::Bin
                         +----Gtk2::Button
                              +----Gtk2::LinkButton

🌈 INTERFACES 🌈

she also implements these, no big deal:

Glib::Object::_Unregistered::AtkImplementorIface
Gtk2::Buildable
Gtk2::Activatable

πŸ’– METHODS πŸ’–

✨ widget = Gtk2::LinkButton->new ($url, $label=undef)

  • $url (string)
  • $label (string)

✨ widget = Gtk2::LinkButton->new_with_label ($url, $label=undef)

  • $url (string)
  • $label (string)

just gets the uri, that's the whole job 🫢


✨ Gtk2::LinkButton->set_uri_hook ($func, $data=undef)

  • $func (scalar)
  • $data (scalar)

Pass undef for func to unset the URI hook.

⚠️ okay this part is important: note that the current implementation does not return the old hook function. Which means there is no way to restore an old hook once you overwrote it. So like... be careful, bestie, that's permanent. πŸ’€

  • $uri (string)

Since: gtk+ 2.14


  • $visited (boolean)

Since: gtk+ 2.14


πŸ‘‘ PROPERTIES πŸ‘‘

  • 'uri' (string : default undef : readable / writable) β€” the URI bound to this button πŸ”—
  • 'visited' (boolean : default false : readable / writable) β€” whether this link has been visited. πŸ‘€

🧚 SEE ALSO 🧚

Gtk2, Glib::Object, Glib::InitiallyUnowned, Gtk2::Object, Gtk2::Widget, Gtk2::Container, Gtk2::Bin, Gtk2::Button


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

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


and that's the whole page, periodt πŸ’…βœ¨ this was perl v5.42.0, dated 2025-07-25, signing off from Gtk2::LinkButton(3) β€” ily, go build something cute πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from