How to use the gconf.CLIENT_PRELOAD_ONELEVEL function in gconf

To help you get started, we’ve selected a few gconf examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github kassoulet / soundconverter / src / soundconverter.py View on Github external
def __init__(self, root, defaults):
		self.gconf = gconf.client_get_default()
		self.gconf.add_dir(root, gconf.CLIENT_PRELOAD_ONELEVEL)
		self.root = root
		self.defaults = defaults
github kassoulet / soundconverter / soundconverter / soundconverter.py View on Github external
def __init__(self, root, defaults):
		self.gconf = gconf.client_get_default()
		self.gconf.add_dir(root, gconf.CLIENT_PRELOAD_ONELEVEL)
		self.root = root
		self.defaults = defaults
github tensorpudding / curator / curator / config.py View on Github external
def __init__(self, dbus_client):
        """
        Begin listening on gconf, sending signals through the given D-Bus
        client.
        """
        self.client = gconf.client_get_default()
        self.client.add_dir(GCONF_DIR, gconf.CLIENT_PRELOAD_ONELEVEL)
        self.dbus_client = dbus_client
        self.client.notify_add(GCONF_NOTIFY_KEY, self.notify_callback)
        self.client.notify_add(GCONF_INTERVAL_KEY, self.interval_callback)
        self.client.notify_add(GCONF_WALLPAPER_KEY, self.wallpaper_callback)