gesture: Fix code snippet

GTK_EVENT_SEQUENCE_ACCEPTED seems to never have been a valid enumeration
value. GTK_EVENT_SEQUENCE_CLAIMED is the closest in meaning.
This commit is contained in:
Ernestas Kulik 2018-05-29 14:48:41 +03:00
parent 334c7911c1
commit e9765c0405

View File

@ -993,7 +993,7 @@ gtk_gesture_get_sequence_state (GtkGesture *gesture,
* GdkEventSequence *sequence, * GdkEventSequence *sequence,
* gpointer user_data) * gpointer user_data)
* { * {
* gtk_gesture_set_sequence_state (first_gesture, sequence, GTK_EVENT_SEQUENCE_ACCEPTED); * gtk_gesture_set_sequence_state (first_gesture, sequence, GTK_EVENT_SEQUENCE_CLAIMED);
* gtk_gesture_set_sequence_state (second_gesture, sequence, GTK_EVENT_SEQUENCE_DENIED); * gtk_gesture_set_sequence_state (second_gesture, sequence, GTK_EVENT_SEQUENCE_DENIED);
* } * }
* *
@ -1002,7 +1002,7 @@ gtk_gesture_get_sequence_state (GtkGesture *gesture,
* GdkEventSequence *sequence, * GdkEventSequence *sequence,
* gpointer user_data) * gpointer user_data)
* { * {
* if (gtk_gesture_get_sequence_state (first_gesture, sequence) == GTK_EVENT_SEQUENCE_ACCEPTED) * if (gtk_gesture_get_sequence_state (first_gesture, sequence) == GTK_EVENT_SEQUENCE_CLAIMED)
* gtk_gesture_set_sequence_state (second_gesture, sequence, GTK_EVENT_SEQUENCE_DENIED); * gtk_gesture_set_sequence_state (second_gesture, sequence, GTK_EVENT_SEQUENCE_DENIED);
* } * }
* ]| * ]|