[gtk/wip/carlosg/gesture-state-in-entries: 2/4] gtksearchentry: Consume click events after pressing on icon
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/carlosg/gesture-state-in-entries: 2/4] gtksearchentry: Consume click events after pressing on icon
- Date: Mon, 23 Aug 2021 13:35:19 +0000 (UTC)
commit 0520867d1669768a7543486eea2759d4c5287e38
Author: Carlos Garnacho <carlosg gnome org>
Date: Mon Aug 23 15:30:21 2021 +0200
gtksearchentry: Consume click events after pressing on icon
This results in user actions, so the gesture should consume the
events.
gtk/gtksearchentry.c | 1 +
1 file changed, 1 insertion(+)
---
diff --git a/gtk/gtksearchentry.c b/gtk/gtksearchentry.c
index 6a9d3c8969..99ca693e91 100644
--- a/gtk/gtksearchentry.c
+++ b/gtk/gtksearchentry.c
@@ -498,6 +498,7 @@ gtk_search_entry_icon_release (GtkGestureClick *press,
GtkSearchEntry *entry)
{
gtk_editable_set_text (GTK_EDITABLE (entry->entry), "");
+ gtk_gesture_set_state (GTK_GESTURE (press), GTK_EVENT_SEQUENCE_CLAIMED);
}
static gboolean
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]