Gnome2::Entry(3)
β¨ 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::AtkImplementorIfaceGtk2::BuildableGtk2::OrientableGtk2::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: defaultundef: readable) β the GTK entry, literally the whole point π'history-id'(string : defaultundef: 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 π
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
- fedora 43: perl-Gnome2 1.048-18.fc43 Β· LGPL-2.1-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms