[gtk/wip/exalm/consumes-motion: 129/134] button: Stop claiming event sequence on press
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/exalm/consumes-motion: 129/134] button: Stop claiming event sequence on press
- Date: Wed, 6 Jan 2021 07:22:43 +0000 (UTC)
commit c23826a8e19fbb57ba273f907c8deb5d44e28b4e
Author: Alexander Mikhaylenko <alexm gnome org>
Date: Fri Dec 25 12:30:33 2020 +0500
button: Stop claiming event sequence on press
That's a leftover from GTK3 days of tracking CSS hover and pressed state.
This will allow to remove a hack from GtkWindowHandle.
gtk/gtkbutton.c | 4 ----
1 file changed, 4 deletions(-)
---
diff --git a/gtk/gtkbutton.c b/gtk/gtkbutton.c
index dc7955ff63..7424895a17 100644
--- a/gtk/gtkbutton.c
+++ b/gtk/gtkbutton.c
@@ -310,14 +310,10 @@ click_pressed_cb (GtkGestureClick *gesture,
{
GtkButton *button = GTK_BUTTON (widget);
GtkButtonPrivate *priv = gtk_button_get_instance_private (button);
- GdkEventSequence *sequence;
if (gtk_widget_get_focus_on_click (widget) && !gtk_widget_has_focus (widget))
gtk_widget_grab_focus (widget);
- sequence = gtk_gesture_single_get_current_sequence (GTK_GESTURE_SINGLE (gesture));
- gtk_gesture_set_sequence_state (GTK_GESTURE (gesture), sequence, GTK_EVENT_SEQUENCE_CLAIMED);
-
if (!priv->activate_timeout)
priv->button_down = TRUE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]