[908] in The GTK GIMP ToolKit mailing list archive

home help back first fref pref prev next nref lref last post

[gtk-list] Re: Double-clicks?

daemon@ATHENA.MIT.EDU (Federico Mena)
Fri Sep 5 14:15:17 1997

Date: Fri, 5 Sep 1997 13:10:11 -0500
From: Federico Mena <federico@nuclecu.unam.mx>
To: gtk-list@redhat.com
In-reply-to: <341001DD.2FBD73B2@geocities.com> (message from Bawer Dagdeviren
	on Fri, 05 Sep 1997 14:58:05 +0200)
Reply-to: federico@nuclecu.unam.mx
Resent-From: gtk-list@redhat.com

>  How does one go about to catch a double-click event. Is there a
>  special event for this or do I have to use timers or what? An example
>  or just an explanation would be appreciated.

If the mouse was double-clicked, event->type will be
GDK_2BUTTON_PRESS, and event->button will tell you which button was
the culprit. :-)

  Quartic

--
To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com < /dev/null


home help back first fref pref prev next nref lref last post