public TranslateFuncWrapper(Gtk.TranslateFunc managed)
 {
     this.managed = managed;
     if (managed != null)
     {
         NativeDelegate = new TranslateFuncNative(NativeCallback);
     }
 }
        public static Gtk.TranslateFunc GetManagedDelegate(TranslateFuncNative native)
        {
            if (native == null)
            {
                return(null);
            }
            TranslateFuncWrapper wrapper = (TranslateFuncWrapper)native.Target;

            if (wrapper == null)
            {
                return(null);
            }
            return(wrapper.managed);
        }
 internal TranslateFuncInvoker(TranslateFuncNative native_cb, IntPtr data, GLib.DestroyNotify notify)
 {
     this.native_cb = native_cb;
     __data         = data;
     __notify       = notify;
 }
 internal TranslateFuncInvoker(TranslateFuncNative native_cb) : this(native_cb, IntPtr.Zero, null)
 {
 }
 internal TranslateFuncInvoker(TranslateFuncNative native_cb, IntPtr data) : this(native_cb, data, null)
 {
 }
		public static Gtk.TranslateFunc GetManagedDelegate (TranslateFuncNative native)
		{
			if (native == null)
				return null;
			TranslateFuncWrapper wrapper = (TranslateFuncWrapper) native.Target;
			if (wrapper == null)
				return null;
			return wrapper.managed;
		}
		public TranslateFuncWrapper (Gtk.TranslateFunc managed)
		{
			this.managed = managed;
			if (managed != null)
				NativeDelegate = new TranslateFuncNative (NativeCallback);
		}
		internal TranslateFuncInvoker (TranslateFuncNative native_cb, IntPtr data, GLib.DestroyNotify notify)
		{
			this.native_cb = native_cb;
			__data = data;
			__notify = notify;
		}
		internal TranslateFuncInvoker (TranslateFuncNative native_cb, IntPtr data) : this (native_cb, data, null) {}
		internal TranslateFuncInvoker (TranslateFuncNative native_cb) : this (native_cb, IntPtr.Zero, null) {}