Gnome2:...::Entry(3)
π Gnome2::GConf::Entry π
okay so this is Gnome2::GConf::Entry from the perl docs (it's a perl module page, Gnome2::...::Entry(3), iykyk) and the whole vibe is Container Objects for key/value pairs. that's it, that's the thesis statement π
β¨ SYNOPSIS β¨
here's the little scenario, literally just copy it:
$client = Gnome2::GConf::Client->get_default;
$client->notify_add($config_key, sub {
my ($client, $cnxn_id, $entry) = @_;
return unless $entry;
unless ($entry->{value})
{
$label->set_text('');
}
elsif ($entry->{value}->{type} eq 'string')
{
$label->set_text($entry->{value}->{value});
}
else
{
$label->set_text('!type error!');
}
});
likeβ¦ notice how you're just reaching into $entry->{value} like a normal hashref? that's the whole point bestie, no C API gymnastics required π
πΈ DESCRIPTION πΈ
so in C, GConfEntry is this opaque container β it holds the key string and the GConfValue that's bound to that key. very "mysterious, don't look inside" energy.
in perl tho? it's a blessed reference to Gnome2::GConf::Entry, and it's just holding these keys for you. open book, main character, no secrets π
keyβ the key that is being monitored. the little guy we're watching πvalueβ a hashref representing aGConfValue(go peek at Gnome2::GConf::Value for the deets), which holds the type and the value of the key. and listen: it may be undef if the key has been unset. not a bug, that's just how it is π also important β every method of the C API is replaced by standard perl functions that operate on hashrefs, so no method calls, just hash access. periodt.is_defaultβ whether theGnome2::GConf::Valueheld by this entry is the default value that the schema attached to the key provides.is_writableβ whether the key is stored in a writable source inside the GConf database.schema_nameβ the name of the schema key bound to this key.
π SEE ALSO π
π SEE ALSO (yes again, she's extra like that) π
- Gnome2::GConf
π COPYRIGHT π
Copyright (C) 2003-2006 by the gtk2-perl team.
this software is licensed under the LGPL. wanna read the whole thing? go see Gnome2::GConf for a full notice, it's all there bestie π«Ά
okay and the receipts at the bottom of the page: this was generated by perl v5.42.0, dated 2025-07-25. slay. go forth and monitor your keys πβ¨π¦
π¦ where this page comes from
- fedora 43: perl-Gnome2-GConf 1.047-18.fc43 Β· LicenseRef-Callaway-LGPLv2+
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms