Skip to content

Use the right types for the GdkSurface::event arguments

Emmanuele Bassi requested to merge ebassi/surface-event into master

We pass the GdkEvent as a pointer, because the autogenerated marshallers don't know how to handle GTypeInstance-derived classes.

Since the GValue box that we use in the marshaller passes the GdkEvent instance as is, we also need to acquire a reference before invoking the closure, and release it afterwards, to ensure that the GdkEvent instance survices the invocation.

Merge request reports