gboolean dconf_recursive_unset (const char *dir, GError **error) { DConfClient *client = dconf_client_new (NULL, NULL, NULL, NULL); gboolean r; g_return_val_if_fail (dconf_is_dir (dir, error), FALSE); r = dconf_client_write (client, dir, NULL, NULL, NULL, error); g_object_unref (client); return r; }
// Set some watchers so we can monitorize dirs, files etc. void On::setWatchers() { // Set JSON watcher Inotify notify; InotifyWatch watch("/var/local/asturix/launcherjsonview.json", IN_CLOSE_WRITE); notify.Add(watch); for (;;) { notify.WaitForEvents(); size_t count = notify.GetEventCount(); while (count > 0) { InotifyEvent event; bool got_event = notify.GetEvent(&event); if (got_event) { QMetaObject::invokeMethod(this,"appsChanged",Qt::QueuedConnection); } count--; } } DConfClient *dConfWallpaper = dconf_client_new(NULL, iconThemeChanged, NULL, NULL); dconf_client_watch(dConfWallpaper, "/org/gnome/desktop/interface/icon-theme", NULL, NULL); }
MDConfAgentPrivate() : client(dconf_client_new()), handler(0) {}
static DConfClient * dconf_util_client_get (void) { return dconf_client_new (); }
static DConfClient * panel_dconf_client_get (void) { return dconf_client_new (); }