Example #1
0
 static void OverrideGetToolkitName(GLib.GType gtype, GetToolkitNameNativeDelegate callback)
 {
     unsafe {
         IntPtr *raw_ptr = (IntPtr *)(((long)gtype.GetClassPtr()) + (long)class_abi.GetFieldOffset("get_toolkit_name"));
         *raw_ptr = Marshal.GetFunctionPointerForDelegate((Delegate)callback);
     }
 }
Example #2
0
		static void OverrideGetToolkitName (GLib.GType gtype, GetToolkitNameNativeDelegate callback)
		{
			AtkUtilClass class_iface = GetClassStruct (gtype, false);
			class_iface.GetToolkitName = callback;
			OverrideClassStruct (gtype, class_iface);
		}