[gnome-builder/wip/gtk4-port: 968/1774] plugins/buidui: allow closing window with escape
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/gtk4-port: 968/1774] plugins/buidui: allow closing window with escape
- Date: Mon, 11 Jul 2022 22:31:30 +0000 (UTC)
commit 3ff3ea83fc4cab4c6660d21c35d1f9be6399a631
Author: Christian Hergert <chergert redhat com>
Date: Tue May 10 16:47:06 2022 -0700
plugins/buidui: allow closing window with escape
src/plugins/buildui/gbp-buildui-targets-dialog.c | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/src/plugins/buildui/gbp-buildui-targets-dialog.c
b/src/plugins/buildui/gbp-buildui-targets-dialog.c
index 8568c84da..7090f6a94 100644
--- a/src/plugins/buildui/gbp-buildui-targets-dialog.c
+++ b/src/plugins/buildui/gbp-buildui-targets-dialog.c
@@ -238,6 +238,8 @@ gbp_buildui_targets_dialog_class_init (GbpBuilduiTargetsDialogClass *klass)
g_object_class_install_properties (object_class, N_PROPS, properties);
+ gtk_widget_class_add_binding_action (widget_class, GDK_KEY_Escape, 0, "window.close", NULL);
+
gtk_widget_class_set_template_from_resource (widget_class,
"/plugins/buildui/gbp-buildui-targets-dialog.ui");
gtk_widget_class_bind_template_child (widget_class, GbpBuilduiTargetsDialog, list_box);
gtk_widget_class_bind_template_child (widget_class, GbpBuilduiTargetsDialog, spinner);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]