[gnome-builder/wip/gtk4-port] libide/gui: close preference window with ctrl+w
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/gtk4-port] libide/gui: close preference window with ctrl+w
- Date: Wed, 15 Jun 2022 23:20:16 +0000 (UTC)
commit 0c25d240b4b535cf4de5fac9321fd9c8ae63d148
Author: Christian Hergert <chergert redhat com>
Date: Wed Jun 15 15:35:06 2022 -0700
libide/gui: close preference window with ctrl+w
src/libide/gui/ide-preferences-window.c | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/src/libide/gui/ide-preferences-window.c b/src/libide/gui/ide-preferences-window.c
index c9bfd5aad..d7ed9eaf7 100644
--- a/src/libide/gui/ide-preferences-window.c
+++ b/src/libide/gui/ide-preferences-window.c
@@ -490,6 +490,8 @@ ide_preferences_window_class_init (IdePreferencesWindowClass *klass)
gtk_widget_class_bind_template_child (widget_class, IdePreferencesWindow, search_button);
gtk_widget_class_bind_template_child (widget_class, IdePreferencesWindow, back_button);
gtk_widget_class_bind_template_callback (widget_class, go_back_cb);
+
+ 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]