/usr/lib/perl5/Gnome2/GConf/Client.pod is in libgnome2-gconf-perl 1.044-4build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 | =head1 NAME
Gnome2::GConf::Client - client module for GConf
=cut
=for position DESCRIPTION
=head1 DESCRIPTION
Gnome2::GConf::Client is a commodity class based on C<GObject> used to access
the default C<GConfEngine> provided by the GConf daemon. It has a cache,
finer-grained notification of changes and a default error handling mechanism.
=head1 ERROR HANDLING
In C, each fallible function has a C<GError> optional argument: by setting it
to a valid C<GError> structure, the function will fill it in case of error; by
passing a NULL value, the function will silently fail.
In Perl, each fallible method has a boolean C<check_error> argument; by setting
this argument to C<TRUE>, the method will croak con failure, otherwise it will
silently fail.
B<NOTE>: To retain backward compatibility, the default behaviour is to check
each error; that is, the C<check_error> argument silently is set to TRUE.
In order to catch an error, you might use eval as a try...catch equivalent:
eval { $s = $client->get_string($some_key); 1; };
if (Glib::Error::matches($@, 'Gnome2::GConf::Error', 'bad-key'))
{
# recover from a bad-key error.
}
On failure, if the error is unchecked, the C<unreturned_error> signal will be
fired by the Gnome2::GConf::Client object; the C<error> signal will B<always>
be fired, whether the error is checked or not.
If you want to let the global error handler function catch just the unchecked
error, use the C<Gnome2::GConf::Client::set_error_handling> method, and attach
a callback to the C<unreturned_error> signal:
$client->set_error_handling('handle-unreturned');
$client->signal_connect(unreturned_error => sub {
my ($client, $error) = @_;
warn $error; # is a Glib::Error
});
=cut
=head1 HIERARCHY
Glib::Object
+----Gnome2::GConf::Client
=cut
=for object Gnome2::GConf::Client client module for GConf
=cut
=for apidoc
=for signature list = $client->get_list($key, $check_error=TRUE)
=cut
=for apidoc
=for signature (car, cdr) = $client->get_pair($key, $check_error=TRUE)
=cut
=head1 METHODS
=head2 $client-E<gt>B<add_dir> ($dir, $preload, $check_error=TRUE)
=over
=item * $dir (string)
=item * $preload (Gnome2::GConf::ClientPreloadType)
=item * $check_error (boolean)
=back
=head2 list = $client->B<all_dirs>($dir, $check_error=TRUE)
=over
=item * $dir (string)
=item * $check_error (boolean)
=back
This method returns an array containing all the directories in a given directory.
=head2 list = $client->B<all_entries>($dir, $check_error=TRUE)
=over
=item * $dir (string)
=item * $check_error (boolean)
=back
This method returns an array containing all the entries (as L<Gnome2::GConf::Entry>) of a given directory.
=head2 boolean = $client-E<gt>B<get_bool> ($key, $check_error=TRUE)
=over
=item * $key (string)
=item * $check_error (boolean)
=back
=head2 boolean = $client-E<gt>B<set_bool> ($key, $val, $check_error=TRUE)
=over
=item * $key (string)
=item * $val (boolean)
=item * $check_error (boolean)
=back
Returns FALSE on failure.
=head2 changeset = $client-E<gt>B<change_set_from_current> ($check_error=TRUE, $key, ...)
=over
=item * $check_error (boolean)
=item * ... (list) list of keys to add to the changeset
=back
Create a L<Gnome2::GConf::ChangeSet> from a list of keys inside the GConf
database.
=head2 $client-E<gt>B<clear_cache>
=head2 boolean = $client->B<commit_change_set> ($cs, $remove_committed, $check_error=TRUE)
=head2 (boolean, changeset) = $client->B<commit_change_set> ($cs, $remove_committed, $check_error=TRUE)
=over
=item * $cs (changeset)
=item * $remove_committed (boolean)
=item * $check_error (boolean)
=back
Commit a given L<Gnome2::GConf::ChangeSet>. In scalar context, or if
I<$remove_committed> is FALSE, return a boolean value; otherwise, return the
boolean value and the L<Gnome2::GConf::ChangeSet> I<$cs>, pruned of the
successfully committed changes.
=head2 value = $client-E<gt>B<get_default_from_schema> ($key, $check_error=TRUE)
=over
=item * $key (string)
=item * $check_error (boolean)
=back
=head2 client = Gnome2::GConf::Client-E<gt>B<get_default>
=head2 boolean = $client-E<gt>B<dir_exists> ($dir, $check_error=TRUE)
=over
=item * $dir (string)
=item * $check_error (boolean)
=back
=head2 entry = $client-E<gt>B<get_entry> ($key, $locale, $use_schema_default, $check_error=TRUE)
=over
=item * $key (string)
=item * $locale (string)
=item * $use_schema_default (boolean)
=item * $check_error (boolean)
=back
=head2 list = $client-E<gt>B<error> ($error)
=over
=item * $error (scalar) a L<Glib::Error>
=back
You should not use this method.
This method emits the "error" signal.
=head2 $client-E<gt>B<set_error_handling> ($mode)
=over
=item * $mode (Gnome2::GConf::ClientErrorHandlingMode)
=back
=head2 double = $client-E<gt>B<get_float> ($key, $check_error=TRUE)
=over
=item * $key (string)
=item * $check_error (boolean)
=back
=head2 boolean = $client-E<gt>B<set_float> ($key, $val, $check_error=TRUE)
=over
=item * $key (string)
=item * $val (double)
=item * $check_error (boolean)
=back
Returns FALSE on failure.
=head2 client = Gnome2::GConf::Client-E<gt>B<get_for_engine> ($engine)
=over
=item * $engine (engine)
=back
=head2 value = $client-E<gt>B<get> ($key, $check_error=TRUE)
=over
=item * $key (string)
=item * $check_error (boolean)
=back
Fetch the C<GConfValue> bound to the give I<$key>.
=head2 $client-E<gt>B<set> ($key, $value, $check_error=TRUE)
=over
=item * $key (string)
=item * $value (value)
=item * $check_error (boolean)
=back
Set the C<GConfValue> I<$val> bound to the given I<$key>.
=head2 integer = $client-E<gt>B<get_int> ($key, $check_error=TRUE)
=over
=item * $key (string)
=item * $check_error (boolean)
=back
=head2 boolean = $client-E<gt>B<set_int> ($key, $val, $check_error=TRUE)
=over
=item * $key (string)
=item * $val (integer)
=item * $check_error (boolean)
=back
Returns FALSE on failure.
=head2 boolean = $client-E<gt>B<key_is_writable> ($key, $check_error=TRUE)
=over
=item * $key (string)
=item * $check_error (boolean)
=back
=head2 $client-E<gt>B<get_list> ($key, $check_error=TRUE)
=over
=item * $key (string)
=item * $check_error (boolean)
=back
=head2 boolean = $client-E<gt>B<set_list> ($key, $list_type, $list, $check_error=TRUE)
=over
=item * $key (string)
=item * $list_type (string)
=item * $list (scalar)
=item * $check_error (boolean)
=back
=head2 integer = $client-E<gt>B<notify_add> ($namespace_section, $func, $data=undef, $check_error=TRUE)
=over
=item * $namespace_section (string)
=item * $func (scalar)
=item * $data (scalar)
=item * $check_error (boolean)
=back
=head2 $client-E<gt>B<notify_remove> ($cnxn_id)
=over
=item * $cnxn_id (integer)
=back
=head2 $client-E<gt>B<get_pair> ($key, $check_error=TRUE)
=over
=item * $key (string)
=item * $check_error (boolean)
=back
=head2 boolean = $client-E<gt>B<set_pair> ($key, $car, $cdr, $check_error=TRUE)
=over
=item * $key (string)
=item * $car (value)
=item * $cdr (value)
=item * $check_error (boolean)
=back
=head2 $client-E<gt>B<preload> ($dirname, $type, $check_error=TRUE)
=over
=item * $dirname (string)
=item * $type (Gnome2::GConf::ClientPreloadType)
=item * $check_error (boolean)
=back
=head2 boolean = $client-E<gt>B<recursive_unset> ($key, $flags=0, $check_error=TRUE)
=over
=item * $key (string)
=item * $flags (Gnome2::GConf::UnsetFlags)
=item * $check_error (boolean)
=back
Since: gconf 2.3
=head2 $client-E<gt>B<remove_dir> ($dir, $check_error=TRUE)
=over
=item * $dir (string)
=item * $check_error (boolean)
=back
=head2 changeset = $client-E<gt>B<reverse_change_set> ($cs, $check_error=TRUE)
=over
=item * $cs (changeset)
=item * $check_error (boolean)
=back
Reverse the given L<Gnome2::GConf::ChangeSet>.
=head2 schema = $client-E<gt>B<get_schema> ($key)
=over
=item * $key (string)
=back
=head2 boolean = $client-E<gt>B<set_schema> ($key, $schema, $check_error=TRUE)
=over
=item * $key (string)
=item * $schema (schema)
=item * $check_error (boolean)
=back
=head2 string = $client-E<gt>B<get_string> ($key, $check_error=TRUE)
=over
=item * $key (string)
=item * $check_error (boolean)
=back
=head2 boolean = $client-E<gt>B<set_string> ($key, $val, $check_error=TRUE)
=over
=item * $key (string)
=item * $val (string)
=item * $check_error (boolean)
=back
Returns FALSE on failure
=head2 $client-E<gt>B<suggest_sync> ($check_error=TRUE)
=over
=item * $check_error (boolean)
=back
=head2 list = $client-E<gt>B<unreturned_error> ($error)
=over
=item * $error (scalar) a L<Glib::Error>
=back
You should not use this method.
This method emits the "unreturned-error" signal.
=head2 boolean = $client-E<gt>B<unset> ($key, $check_error=TRUE)
=over
=item * $key (string)
=item * $check_error (boolean)
=back
=head2 list = $client-E<gt>B<value_changed> ($key, $value)
=over
=item * $key (string)
=item * $value (value)
=back
You should not use this method.
This method emits the "value-changed" signal.
=head2 value = $client-E<gt>B<get_without_default> ($key, $check_error=TRUE)
=over
=item * $key (string)
=item * $check_error (boolean)
=back
=cut
=head1 SIGNALS
=over
=item B<value-changed> (Gnome2::GConf::Client, string, gpointer)
=item B<unreturned-error> (Gnome2::GConf::Client, gpointer)
=item B<error> (Gnome2::GConf::Client, gpointer)
=back
=cut
=head1 ENUMS AND FLAGS
=head2 enum Gnome2::GConf::ClientErrorHandlingMode
=over
=item * 'handle-none' / 'GCONF_CLIENT_HANDLE_NONE'
=item * 'handle-unreturned' / 'GCONF_CLIENT_HANDLE_UNRETURNED'
=item * 'handle-all' / 'GCONF_CLIENT_HANDLE_ALL'
=back
=head2 enum Gnome2::GConf::ClientPreloadType
=over
=item * 'preload-none' / 'GCONF_CLIENT_PRELOAD_NONE'
=item * 'preload-onelevel' / 'GCONF_CLIENT_PRELOAD_ONELEVEL'
=item * 'preload-recursive' / 'GCONF_CLIENT_PRELOAD_RECURSIVE'
=back
=head2 flags Gnome2::GConf::UnsetFlags
=over
=item * 'names' / 'GCONF_UNSET_INCLUDING_SCHEMA_NAMES'
=back
=cut
=head1 SEE ALSO
L<Gnome2::GConf>, L<Glib::Object>
=cut
=head1 COPYRIGHT
Copyright (C) 2003-2006 by the gtk2-perl team.
This software is licensed under the LGPL. See L<Gnome2::GConf> for a full
notice.
=cut
|