gdk: It is valid to pass a null gdk_event sometimes

For example gtk_drag_start allows a null Gdk.Event so we need to marshal
it to IntPtr.Zero instead of throwing a NullReferenceException

Cherry-picked from the gtk-sharp-2.12 branch.
This commit is contained in:
Alan McGovern 2013-02-25 13:29:07 +00:00 committed by Bertrand Lorentz
parent 01520a9859
commit 100696b5c1

View file

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<api>
<symbol type="alias" cname="Window" name="gulong" />
<symbol type="marshal" cname="GdkEvent" name="Gdk.Event" marshal_type="IntPtr" call_fmt="{0}.Handle" from_fmt="Gdk.Event.GetEvent ({0})"/>
<symbol type="marshal" cname="GdkEvent" name="Gdk.Event" marshal_type="IntPtr" call_fmt="{0} == null ? IntPtr.Zero : {0}.Handle" from_fmt="Gdk.Event.GetEvent ({0})"/>
<symbol type="marshal" cname="GdkEventAny" name="Gdk.Event" marshal_type="IntPtr" call_fmt="{0}.Handle" from_fmt="Gdk.Event.GetEvent ({0})"/>
<symbol type="manual" cname="GdkEventButton" name="Gdk.EventButton"/>
<symbol type="manual" cname="GdkEventClient" name="Gdk.EventClient"/>