# File gconf/sample/basic-gconf-app.rb, line 211 def start @client = GConf::Client.default # Tell the GConf::Client instance that we're interested in the given # directory. This means it will receive notification of changes # to this directory, and cache keys under this directory. # So _don't_ add "/" or something silly like that or you'll end # up with a copy of the whole GConf database. ;-) # # We pass GConf::Client::PRELOAD_NONE to avoid loading all config # keys on startup. If your app pretty much reads all config keys # on startup, then preloading the cache may make sense. We could have # passed no second argument since PRELOAD_NONE is the default value. @client.add_dir('/apps/basic-gconf-app', GConf::Client::PRELOAD_NONE) self.create_main_window @main_window.show_all end