Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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
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
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)