[gnome-shell/wip/carlosg/app-grid-gestures: 8/11] st/button: Consider touch sequences for ::pressed state
- From: Marge Bot <marge-bot src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/wip/carlosg/app-grid-gestures: 8/11] st/button: Consider touch sequences for ::pressed state
- Date: Tue, 11 May 2021 16:13:52 +0000 (UTC)
commit 279db3f16887427007c22601e441e3ea4c8dcde7
Author: Carlos Garnacho <carlosg gnome org>
Date: Thu Mar 18 18:40:40 2021 +0100
st/button: Consider touch sequences for ::pressed state
We do notify on the ::pressed property after touch begin/end and
recording the event sequence, but we do not return the correct value
if the button was triggered via touch.
Consider the event sequence also in the ::pressed getter, so the
button is considered pressed.
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1774>
src/st/st-button.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/st/st-button.c b/src/st/st-button.c
index 1be9de5f09..eae245928a 100644
--- a/src/st/st-button.c
+++ b/src/st/st-button.c
@@ -432,7 +432,7 @@ st_button_get_property (GObject *gobject,
g_value_set_boolean (value, priv->is_checked);
break;
case PROP_PRESSED:
- g_value_set_boolean (value, priv->pressed != 0);
+ g_value_set_boolean (value, priv->pressed != 0 || priv->press_sequence != NULL);
break;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]