[Gtk-sharp-list] EventHandler error

Mike Kestner mkestner@speakeasy.net
20 Aug 2002 17:54:12 -0500

On Tue, 2002-08-20 at 17:31, Moritz Balz wrote:

>     Test.cs(35) error CS0019: Operator + cannot be applied to operands
>     of type `GtkSharp.DeleteEventHandler' and `System.EventHandler'
> Can someone give me a hint on what's wrong?

Yep.  The events now have specialized handlers to facilitate parameter
access.  DeleteEvent is now defined as a DeleteEventHandler event, which
has the signature:

void DeleteEventHandler (object o, DeleteEventArgs args);

Now you can do things like:

	Gdk.EventAny e = args.Event;

and end up with compile time typesafe access to the event parameters.

Mike Kestner <mkestner@speakeasy.net>