public static NotifyFuncNative Wrap(NotifyEventHandler notify) { NotifyWrapper wrapper = new NotifyWrapper(notify); refs.Add(wrapper); return(wrapper.native); }
public void Add(NotifyEventHandler notify) { IntPtr error; uint id = gconf_client_notify_add(handle, path, NotifyWrapper.Wrap(notify), IntPtr.Zero, IntPtr.Zero, out error); if (error != IntPtr.Zero) { throw new GLib.GException(error); } connections [id] = notify; }
public static NotifyFuncNative Wrap (NotifyEventHandler notify) { NotifyWrapper wrapper = new NotifyWrapper (notify); refs.Add (wrapper); return wrapper.native; }