man Gnome2::GConf::Entry () - Container Objects for key/value pairs
NAME
Gnome2::GConf::Entry - Container Objects for key/value pairs
SYNOPSIS
$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!'); } });
DESCRIPTION
In C, CWGConfEntry is a opaque container for the key string and for the CWGConfValue bound to that key. In perl, it's an hashref consisting of these keys:
- key
- The key that is being monitored.
- value
- An hashref, representing a CWGConfValue (see Gnome2::GConf::Value), which contains the type and the value of the key; it may be undef if the key has been unset. Every method of the C API is replaced by standard perl functions that operate on hashrefs.
SEE ALSO
SEE ALSO
Gnome2::GConf
COPYRIGHT
Copyright (C) 2003-2005 by the gtk2-perl team.
This software is licensed under the LGPL. See Gnome2::GConf for a full notice.