Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

gnome2::gconf::value(3pm) [debian man page]

Gnome2::GConf::Value(3pm)				User Contributed Perl Documentation				 Gnome2::GConf::Value(3pm)

NAME
Gnome2::GConf::Value - Opaque datatype for generic values SYNOPSIS
$client = Gnome2::GConf::Client->get_default; $client->set($config_key, { type => 'string', value => 'Hello, World', }); print "The Meaning of Life." if ($client->get($another_key)->{value} == 42); DESCRIPTION
"GConfValue" is a dynamic type similar to "GValue", and represents a value that can be obtained from or stored in the configuration database; it contains the value bound to a key, and its type. In perl, it's an hashref containing these keys: type The type of the data. Fundamental types are 'string', 'int', 'float' and 'bool'. Lists are handled by passing an arrayref as the payload of the "value" key: $client->set($key, { type => 'string', value => 'some string' }); $client->set($key, { type => 'float', value => 0.5 }); $client->set($key, { type => 'bool', value => FALSE }); $client->set($key, { type => 'int', value => [0..15] }); Pairs are handled by using the special type 'pair', and passing, in place of the "value" key, the "car" and the "cdr" keys, each containing an hashref representing a GConfValue: $client->set($key, { type => 'pair', car => { type => 'string', value => 'some string' }, cdr => { type => 'int', value => 42 }, }); This is needed since pairs might have different types; lists, instead, are of the same type. value The payload, containing the value of type "type". It is used only for fundamental types (scalars or lists). car, cdr Special keys, that must be used only when working with the 'pair' type. SEE ALSO
Gnome2::GConf(3pm), Gnome2::GConf::Entry(3pm), Gnome2::GConf::Schema(3pm), Gnome2::GConf::ChangeSet(3pm). METHODS
integer = $value_a->compare ($value_b) o $value_b (value) Since: gconf 2.13 string = $value->to_string SEE ALSO
Gnome2::GConf COPYRIGHT
Copyright (C) 2003-2006 by the gtk2-perl team. This software is licensed under the LGPL. See Gnome2::GConf for a full notice. perl v5.14.2 2011-11-17 Gnome2::GConf::Value(3pm)

Check Out this Related Man Page

Gnome2::AppHelper(3pm)					User Contributed Perl Documentation				    Gnome2::AppHelper(3pm)

NAME
Gnome2::AppHelper GnomeUIInfo In Gnome2 GnomeUIInfo's are often used as a convenient way to create GUI's. In Perl, GnomeUIInfo's are always references to arrays of items. Items can either be references to hashs or references to arrays: Hash Reference When using hash references, items are specified by giving key-value pairs. A typical example: { type => "item", label => "Quit", callback => sub { exit(0); } } For the list of valid keys, see below. Array References When using array references, items are a list of the following keys, in this order: type, label, hint, moreinfo, pixmap_type, pixmap_info, accelerator_key and modifiers. The example from above would become: [ "item", "Item", undef, sub { exit(0); }, undef, undef, undef, undef ] To create multi-level structures, you use the "subtree" type and the "subtree" key, as in the following example: { type => "subtree", label => "Radio Items", subtree => [ { type => "radioitems", moreinfo => [ { type => "item", label => "A" }, { type => "item", label => "B" }, { type => "item", label => "C" }, { type => "item", label => "D" }, { type => "item", label => "E" } ] } ] } METHODS
Gnome2->accelerators_sync $menu_shell->fill_menu ($uiinfo, $accel_group, $uline_accels, $pos) o $uiinfo (Gnome2::UIInfo) o $accel_group (Gtk2::AccelGroup) o $uline_accels (boolean) o $pos (integer) $toolbar->fill_toolbar ($uiinfo, $accel_group) o $uiinfo (Gnome2::UIInfo) o $accel_group (Gtk2::AccelGroup) list = $parent->find_menu_pos ($path) o $path (string) Returns the GtkWidget and the position associated with the path. $bar->install_menu_hints ($uiinfo) o $uiinfo (Gnome2::UIInfo) SEE ALSO
Gnome2 COPYRIGHT
Copyright (C) 2003-2004 by the gtk2-perl team. This software is licensed under the LGPL. See Gnome2 for a full notice. perl v5.14.2 2011-11-16 Gnome2::AppHelper(3pm)
Man Page