예제 #1
0
        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);
        }
예제 #2
0
		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;
		}