[Gtk-sharp-list] left mousebutton double-click
mkestner at novell.com
Tue Apr 18 11:51:32 EDT 2006
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:
> 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
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 <mkestner at novell.com>
More information about the Gtk-sharp-list