forked from AuroraMiddleware/gtk
gtktext: Set claimed state on button1 click gesture
All possible ramifications after button1 press (move cursor, begin drag, begin dnd, select word/line, ...) result in user actions. The right thing after that is consuming the events, set the gesture state for that.
This commit is contained in:
parent
1310bf0218
commit
8f397502df
@ -2773,6 +2773,8 @@ gtk_text_click_gesture_pressed (GtkGestureClick *gesture,
|
|||||||
GdkDevice *source;
|
GdkDevice *source;
|
||||||
guint state;
|
guint state;
|
||||||
|
|
||||||
|
gtk_gesture_set_state (GTK_GESTURE (gesture), GTK_EVENT_SEQUENCE_CLAIMED);
|
||||||
|
|
||||||
sel_start = priv->selection_bound;
|
sel_start = priv->selection_bound;
|
||||||
sel_end = priv->current_pos;
|
sel_end = priv->current_pos;
|
||||||
have_selection = sel_start != sel_end;
|
have_selection = sel_start != sel_end;
|
||||||
|
Loading…
Reference in New Issue
Block a user