mono/gtk-sharp — pull request #102 by xDarkice (2014-04-05 15:12:20+00:00)
Title: Fix generation of SetGValue method

Some types need special methods to convert a object to a gvalue.
The type system will look for an SetGValue method with an ref GLib.Value parameter and invoke it.
Manual generation is needed because this is a non-static method with the Handle being passed as the second parameter and the GLib.Value as the first. Without this fix, the generator would generate the Handle for the first parameter and then the GLib.Value.

The new generated method looks like this:
```csharp
[DllImport("cogl", CallingConvention = CallingConvention.Cdecl)]
static extern void cogl_object_value_set_object(ref GLib.Value val, IntPtr obj);

public void SetGValue (ref GLib.Value val)
{
cogl_object_value_set_object (ref val, Handle);
}
```