diff options
author | Carlos Garnacho <carlosg@gnome.org> | 2017-09-15 17:34:06 +0200 |
---|---|---|
committer | Carlos Garnacho <carlosg@gnome.org> | 2017-09-19 18:40:50 +0200 |
commit | a9988e18b0a3eb63409b87dfab53efc0b6f10b91 (patch) | |
tree | 3fac6958cc695dc70b22ffcd44ead063ce9b314a /gdk/gdkeventsprivate.h | |
parent | 403a724164e25ec7e2c4a853b561609d12f7a1b8 (diff) | |
download | gtk+-a9988e18b0a3eb63409b87dfab53efc0b6f10b91.tar.gz |
gtk: Remove 2BUTTON and 3BUTTON events and event types
Those should be interpreted by widget-local gestures, not guessed at a
high level with no notions of the specific context. Users will want
GtkGestureMultiPress to replace these events.
Diffstat (limited to 'gdk/gdkeventsprivate.h')
-rw-r--r-- | gdk/gdkeventsprivate.h | 36 |
1 files changed, 2 insertions, 34 deletions
diff --git a/gdk/gdkeventsprivate.h b/gdk/gdkeventsprivate.h index 24c1ea18e1..fa98164d00 100644 --- a/gdk/gdkeventsprivate.h +++ b/gdk/gdkeventsprivate.h @@ -136,8 +136,7 @@ struct _GdkEventMotion /** * GdkEventButton: - * @type: the type of the event (%GDK_BUTTON_PRESS, %GDK_2BUTTON_PRESS, - * %GDK_3BUTTON_PRESS or %GDK_BUTTON_RELEASE). + * @type: the type of the event (%GDK_BUTTON_PRESS or %GDK_BUTTON_RELEASE). * @window: the window which received the event. * @send_event: %TRUE if the event was sent explicitly. * @time: the time of the event in milliseconds. @@ -160,38 +159,7 @@ struct _GdkEventMotion * screen. * * Used for button press and button release events. The - * @type field will be one of %GDK_BUTTON_PRESS, - * %GDK_2BUTTON_PRESS, %GDK_3BUTTON_PRESS or %GDK_BUTTON_RELEASE, - * - * Double and triple-clicks result in a sequence of events being received. - * For double-clicks the order of events will be: - * - * - %GDK_BUTTON_PRESS - * - %GDK_BUTTON_RELEASE - * - %GDK_BUTTON_PRESS - * - %GDK_2BUTTON_PRESS - * - %GDK_BUTTON_RELEASE - * - * Note that the first click is received just like a normal - * button press, while the second click results in a %GDK_2BUTTON_PRESS - * being received just after the %GDK_BUTTON_PRESS. - * - * Triple-clicks are very similar to double-clicks, except that - * %GDK_3BUTTON_PRESS is inserted after the third click. The order of the - * events is: - * - * - %GDK_BUTTON_PRESS - * - %GDK_BUTTON_RELEASE - * - %GDK_BUTTON_PRESS - * - %GDK_2BUTTON_PRESS - * - %GDK_BUTTON_RELEASE - * - %GDK_BUTTON_PRESS - * - %GDK_3BUTTON_PRESS - * - %GDK_BUTTON_RELEASE - * - * For a double click to occur, the second button press must occur within - * 1/4 of a second of the first. For a triple click to occur, the third - * button press must also occur within 1/2 second of the first button press. + * @type field will be one of %GDK_BUTTON_PRESS or %GDK_BUTTON_RELEASE, */ struct _GdkEventButton { |