Gnome2::Entry(3)

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

✨ Gnome2::Entry ✨

okay so bestie, welcome to Gnome2::Entry πŸ’– β€” she's a wrapper for GnomeEntry, and she's here to be the whole vibe. This page lives in the User Contributed Perl Documentation corner of the manual, and we're gonna go through her entire personality together, no skips. 🫢


🌸 HIERARCHY 🌸

the family tree is giving ancestry.com, and yes she goes ALL the way back:

Glib::Object
+----Glib::InitiallyUnowned
     +----Gtk2::Object
          +----Gtk2::Widget
               +----Gtk2::Container
                    +----Gtk2::Box
                         +----Gtk2::HBox
                              +----Gtk2::Combo
                                   +----Gnome2::Entry

she's lowkey descended from royalty, we have to respect it πŸ‘‘


πŸ¦‹ INTERFACES πŸ¦‹

she also implements all of these, periodt:

  • Glib::Object::_Unregistered::AtkImplementorIface
  • Gtk2::Buildable
  • Gtk2::Orientable
  • Gtk2::Editable

πŸ’… METHODS πŸ’…

πŸŽ€ widget = Gnome2::Entry->new ($history_id=undef)

makes you a brand new entry bestie ✨

  • $history_id (string) β€” optional, defaults to undef

πŸŽ€ $gentry->append_history ($save, $text)

slaps a new item onto the end of the history. the way that history just keeps growing 😭

  • $save (boolean)
  • $text (string)

πŸŽ€ $gentry->clear_history

nukes the whole history. gone. deleted. we don't talk about it πŸ’€

πŸŽ€ widget = $gentry->gtk_entry

hands you the Gtk2::Entry underneath, the main character of the operation πŸ‘‘

πŸŽ€ string = $gentry->get_history_id

tells you what the history ID is, iykyk

πŸŽ€ $gentry->set_history_id ($history_id)

sets the history ID. iconic.

  • $history_id (string)

πŸŽ€ integer = $gentry->get_max_saved

how many entries is she keeping around max? this tells you πŸ“

πŸŽ€ $gentry->set_max_saved ($max_saved)

okay so this is where you decide the cap on saved entries:

  • $max_saved (integer)

πŸŽ€ $gentry->prepend_history ($save, $text)

same energy as append but she puts it at the FRONT, front-of-the-line behaviour fr fr πŸ’–

  • $save (boolean)
  • $text (string)

🌈 PROPERTIES 🌈

  • 'gtk-entry' (Gtk2::Entry : default undef : readable) β€” the GTK entry, literally the whole point πŸ’…
  • 'history-id' (string : default undef : readable / writable) β€” history ID, she's readable AND writable, versatile queen ✨

⭐ SIGNALS ⭐

  • activate (Gnome2::Entry) β€” fires when she activates, and honestly? same.

πŸ’œ SEE ALSO πŸ’œ

go read these next bestie, they're all connected to her lore:

Gnome2, Glib::Object, Glib::InitiallyUnowned, Gtk2::Object, Gtk2::Widget, Gtk2::Container, Gtk2::Box, Gtk2::HBox, Gtk2::Combo


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

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


ok that's the whole page, you ate that πŸ’… no cap, every flag and every method accounted for, nothing skipped, we're so back πŸ¦‹

and that's a wrap on the sign-off bestie β€” this beauty ships with perl v5.42.0 and was last touched on 2025-07-25, in Gnome2::Entry(3). mwah πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from