2005-08-30 Mike Kestner <mkestner@novell.com>

* gdk/Event.cs : add some null guarding to GetEvent.
	[Fixes #75642]

svn path=/trunk/gtk-sharp/; revision=49152
This commit is contained in:
Mike Kestner 2005-08-30 20:51:48 +00:00
parent 376b8f42ac
commit 06c4a3811f
2 changed files with 8 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2005-08-30 Mike Kestner <mkestner@novell.com>
* gdk/Event.cs : add some null guarding to GetEvent.
[Fixes #75642]
2005-08-30 Mike Kestner <mkestner@novell.com>
* parser/gapi_pp.pl : ignore ifndef *_H_ lines like in 1.0.x.

View file

@ -79,6 +79,9 @@ namespace Gdk {
public static Event GetEvent (IntPtr raw)
{
if (raw == IntPtr.Zero)
return null;
switch (gtksharp_gdk_event_get_event_type (raw)) {
case EventType.Expose:
return new EventExpose (raw);