Gnome2::HRef(3)

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

πŸ’– Gnome2::HRef β€” bestie, it's a wrapper for GnomeHRef πŸ’–

okay so picture this: you want a clickable lil link-button in your GNOME app and you do NOT wanna hand-roll it. that's literally what this is. Gnome2::HRef is a Perl wrapper around GnomeHRef, and she's here to serve. ✨


🌸 HIERARCHY 🌸

the family tree, and yes she comes from a long line of icons πŸ‘‘

  Glib::Object
  +----Glib::InitiallyUnowned
       +----Gtk2::Object
            +----Gtk2::Widget
                 +----Gtk2::Container
                      +----Gtk2::Bin
                           +----Gtk2::Button
                                +----Gnome2::HRef

πŸ¦‹ INTERFACES πŸ¦‹

she's got range, she's multi-talented, she does it all:

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

✨ METHODS ✨

πŸ’… widget = Gnome2::HRef->new ($url, $text)

spawn a brand new HRef, bestie. give her a link and give her some words.

  • $url (string)
  • $text (string)

πŸ’… string = $href->get_label

πŸ’… $href->set_label ($label)

read the label, or set the label. lowkey simple, highkey essential.

  • $label (string)

πŸ’… string = $href->get_text

πŸ’… $href->set_text ($text)

grab the text, or swap the text out for new text. no cap.

  • $text (string)

πŸ’… string = $href->get_url

πŸ’… $href->set_url ($url)

where does she go when you click her? get the url. or change the url. main character destination energy. 🌈

  • $url (string)

πŸŽ€ PROPERTIES πŸŽ€

  • 'text' (string : default "End World Hunger" : readable / writable) β€” the text chillin' on the button, fr fr
  • 'url' (string : default "http://www.wfp.org" : readable / writable) β€” the URL that GnomeHRef activates when it gets activated πŸ’«

🌈 STYLE PROPERTIES 🌈

  • 'link-color' (Gtk2::Gdk::Color : default undef : readable) β€” the color used to draw the link. readable only, so admire it, don't touch it πŸ’œ

πŸ‘€ SEE ALSO πŸ‘€

the whole friend group, go say hi:

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


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

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


okay that's the whole page, you ate it, periodt. 🫢 this lil doc drop is from perl v5.42.0, dated 2025-07-25 β€” yeah, she's been iconic since forever and she's still slaying. πŸ’–πŸŒΈβœ¨

πŸ“¦ where this page comes from