DirectoryConnections GetConnections(string dir) { if (dirs.Contains(dir)) { return(dirs [dir] as DirectoryConnections); } IntPtr err; gconf_client_add_dir(Raw, dir, 0, out err); if (err != IntPtr.Zero) { throw new GLib.GException(err); } DirectoryConnections result = new DirectoryConnections(this, dir); dirs.Add(dir, result); return(result); }
DirectoryConnections GetConnections (string dir) { if (dirs.Contains (dir)) return dirs [dir] as DirectoryConnections; IntPtr err; gconf_client_add_dir (Raw, dir, 0, out err); if (err != IntPtr.Zero) throw new GLib.GException (err); DirectoryConnections result = new DirectoryConnections (this, dir); dirs.Add (dir, result); return result; }