[gtksourceview/wip/chergert/gsv-gtk4] tests: allow closing window with ctrl+w
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtksourceview/wip/chergert/gsv-gtk4] tests: allow closing window with ctrl+w
- Date: Wed, 1 Jul 2020 00:50:26 +0000 (UTC)
commit 6a27c55d4508c650f46edfdecf54c6d6a1218de8
Author: Christian Hergert <chergert redhat com>
Date: Tue Jun 30 17:50:17 2020 -0700
tests: allow closing window with ctrl+w
tests/test-widget.c | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/tests/test-widget.c b/tests/test-widget.c
index 1380f8f1..1100586f 100644
--- a/tests/test-widget.c
+++ b/tests/test-widget.c
@@ -1000,6 +1000,8 @@ test_widget_class_init (TestWidgetClass *klass)
gtk_widget_class_bind_template_child_private (widget_class, TestWidget, cursor_position_info);
gtk_widget_class_bind_template_child_private (widget_class, TestWidget, chooser_button);
gtk_widget_class_bind_template_child_private (widget_class, TestWidget, background_pattern);
+
+ gtk_widget_class_add_binding_action (widget_class, GDK_KEY_w, GDK_CONTROL_MASK, "window.close", NULL);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]