[ruby-gnome2-doc-cvs] [Hiki] update - GConf::Client

Zurück zum Archiv-Index

ruby-****@lists***** ruby-****@lists*****
2003年 4月 13日 (日) 09:45:01 JST


-------------------------
REMOTE_ADDR = 213.113.203.231
REMOTE_HOST = 
-------------------------

-------------------------
= class GConf::Client
GConf::Client is the main class for accessing GConf functionality.  All interfacing between the GConf daemon and the client application goes through this class.

== super class
* GLib::Object

== class methods
--- GConf::Client.new(engine = nil)
    creates a new GConf::Client.  A client for a specific engine may be created, or a default engine may be used otherwise.
    * engine:  a GConf::Engine to create the client for
    * Returns: a new GConf::Client

--- add_dir(dir, preload_type = nil)
    Add a directory to the list of directories this GConf::Client will watch.  Any changes to a key in this directory or any sub-directory will trigger the "value_changed" signal.  A preloading method may also be specified for this directory.  It is not possible to add sub-directories to any directories already added in this way, doing so will cause an exception.  It is, however, possible to add the same directory multiple times, and it will be watched until it has been removed, by GConf::Client#remove_dir, an equal number of times.
     * dir: the directory to add
     * preload_type: ((<PreloadType|GConf::Client#PreloadType>)) to use for preloading; defaults to ((<PRELOAD_NONE|GConf::Client#PreloadType::PRELOAD_NONE>))
     * Returns: self

=== PreloadType
--- PRELOAD_NONE
    Nothing gets preloaded.
--- PRELOAD_ONELEVEL
    Preload the immediate children of the directory.
--- PRELOAD_RECURSIVE
    Preload all sub-directories to the directory as well.



ruby-gnome2-cvs メーリングリストの案内
Zurück zum Archiv-Index