On Tue, 2006-04-18 at 09:05 -0500, Crucius, Wesley wrote: > You'll need to look at the arg(s) "passed" to your button_press event handler. > What you want to check for is the 'Gdk.EventType.TwoButtonPress' value. > Also, note that a double click actually generates multiple events... > This talks about the events sequencing: > http://www.go-mono.com/docs/[EMAIL PROTECTED] > > You'll have to look at the "array" of GLib.SignalArgs.Args, which I > think is intended to deal with event queueing, although I don't think > I've ever seen more that one event in the list, but I guess that > depends on how fast you are processing them.
SignalArgs.Args is just a list of the parameters passed in a signal emission. You don't want to be messing around with it, typically. The SignalArgs subclasses "wrap" the members of the Args array into typed properties. In the case of a ButtonPressEvent, SignalArgs.Args is going to contain 1 element, the Gdk.ButtonEvent passed to the internal signal callback we use to raise Widget.ButtonPressEvent events. -- Mike Kestner <[EMAIL PROTECTED]> _______________________________________________ Gtk-sharp-list maillist - [email protected] http://lists.ximian.com/mailman/listinfo/gtk-sharp-list
