mirror of
				https://github.com/Ryujinx/GtkSharp.git
				synced 2025-11-04 13:04:53 +00:00 
			
		
		
		
	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:
		
							parent
							
								
									01520a9859
								
							
						
					
					
						commit
						100696b5c1
					
				| 
						 | 
				
			
			@ -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"/>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in a new issue