[gnome-builder/wip/gtk4-port: 1530/1774] 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: 1530/1774] libide/gui: close preference window with ctrl+w
- Date: Mon, 11 Jul 2022 22:31:49 +0000 (UTC)
commit 7f8d1abd2a1cf32cfda1e23f852bc61d14934101
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]