Next: Gnome2::GConf::Value | Previous: Gnome2::GConf::main | [Gtk2-Perl - Table of Contents] | [Gtk2-Perl - Index] |
Gnome2::GConf::Schema - Schema Objects for key description
$client->set_schema($key, { owner => 'some_program', short_desc => 'Some key.', long_desc => 'A key that does something to some_program.', locale => 'C', type => 'int', default_value => { type => 'int', value => 42 } }); $description{'short'} = $client->get_schema($key)->{short_desc};
In C, GConfSchema
is an opaque type for a "schema", that is a collection of
useful informations about a key/value pair. It may contain a description of
the key, a default value, the program which owns the key, etc.
In perl, it is represented using an hashref containing any of these keys:
GConfValue
, but it explicitly tags lists and pairs using the
'list' and 'pair' types (the 'type' key is just an indication of what should
be expected inside the default_value
field).
GConfValue
, so, in
perl, it becomes an hashref (see Gnome2::GConf::Value)
Gnome2::GConf(3pm), Gnome2::GConf::Value(3pm).
Copyright (C) 2003-2006 by the gtk2-perl team.
This software is licensed under the LGPL. See Gnome2::GConf for a full notice.