[gnome-builder/wip/gtk4-port] tests: use various template-glib language features
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/gtk4-port] tests: use various template-glib language features
- Date: Thu, 5 May 2022 23:58:02 +0000 (UTC)
commit e03df32598ea8c59a07efecd8e4a5f73a0b22755
Author: Christian Hergert <chergert redhat com>
Date: Thu May 5 16:57:57 2022 -0700
tests: use various template-glib language features
src/tests/test-shortcuts.json | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/tests/test-shortcuts.json b/src/tests/test-shortcuts.json
index b9a4ad23c..102ea0e52 100644
--- a/src/tests/test-shortcuts.json
+++ b/src/tests/test-shortcuts.json
@@ -1,13 +1,13 @@
[
{
"action" : "test.open",
- "when" : "true && false",
+ "when" : "!typeof(focus).is_a(typeof(Gtk.Window))",
"trigger" : "<ctrl>o",
"phase" : "bubble"
},
{
"action" : "test.open",
- "when" : "false || true",
+ "when" : "focus != null",
"trigger" : "<ctrl>p",
"phase" : "capture"
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]