1Gnome2::GConf::Entry(3)User Contributed Perl DocumentatioGnnome2::GConf::Entry(3)
2
3
4

NAME

6       Gnome2::GConf::Entry -  Container Objects for key/value pairs
7

SYNOPSIS

9         $client = Gnome2::GConf::Client->get_default;
10         $client->notify_add($config_key, sub {
11             my ($client, $cnxn_id, $entry) = @_;
12             return unless $entry;
13
14             unless ($entry->{value})
15             {
16               $label->set_text('');
17             }
18             elsif ($entry->{value}->{type} eq 'string')
19             {
20               $label->set_text($entry->{value}->{value});
21             }
22             else
23             {
24               $label->set_text('!type error!');
25             }
26           });
27

DESCRIPTION

29       In C, "GConfEntry" is a opaque container for the key string and for the
30       "GConfValue" bound to that key.  In perl, it's a blessed reference to
31       Gnome2::GConf::Entry, holding these keys:
32
33       key The key that is being monitored.
34
35       value
36           An hashref, representing a "GConfValue" (see Gnome2::GConf::Value),
37           which contains the type and the value of the key; it may be undef
38           if the key has been unset.  Every method of the C API is replaced
39           by standard perl functions that operate on hashrefs.
40
41       is_default
42           Whether the Gnome2::GConf::Value held by this entry is the default
43           value provided by the schema attached to the key.
44
45       is_writable
46           Whether the key is stored in a writable source inside the GConf
47           database.
48
49       schema_name
50           The name of the schema key bound to this key.
51

SEE ALSO

53       Gnome2::GConf(3pm), Gnome2::GConf::Value(3pm).
54

SEE ALSO

56       Gnome2::GConf
57
59       Copyright (C) 2003-2006 by the gtk2-perl team.
60
61       This software is licensed under the LGPL.  See Gnome2::GConf for a full
62       notice.
63
64
65
66perl v5.30.0                      2019-07-26           Gnome2::GConf::Entry(3)
Impressum