[gnome-builder/wip/gtk4-port: 183/343] libide/greeter: remove dazzle shortcuts
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/gtk4-port: 183/343] libide/greeter: remove dazzle shortcuts
- Date: Mon, 4 Apr 2022 20:02:14 +0000 (UTC)
commit 96d19cab0e30fd8655cd9303cfd9d5d39cb6198c
Author: Christian Hergert <chergert redhat com>
Date: Wed Mar 30 13:39:18 2022 -0700
libide/greeter: remove dazzle shortcuts
src/libide/greeter/ide-greeter-private.h | 3 +-
.../greeter/ide-greeter-workspace-shortcuts.c | 50 ----------------------
src/libide/greeter/ide-greeter-workspace.c | 3 ++
3 files changed, 4 insertions(+), 52 deletions(-)
---
diff --git a/src/libide/greeter/ide-greeter-private.h b/src/libide/greeter/ide-greeter-private.h
index 1b41ee4d6..ea04ed2e4 100644
--- a/src/libide/greeter/ide-greeter-private.h
+++ b/src/libide/greeter/ide-greeter-private.h
@@ -26,7 +26,6 @@
G_BEGIN_DECLS
-void _ide_greeter_workspace_init_actions (IdeGreeterWorkspace *self);
-void _ide_greeter_workspace_init_shortcuts (IdeGreeterWorkspace *self);
+void _ide_greeter_workspace_init_actions (IdeGreeterWorkspace *self);
G_END_DECLS
diff --git a/src/libide/greeter/ide-greeter-workspace.c b/src/libide/greeter/ide-greeter-workspace.c
index 8fd68f96e..6900a9e57 100644
--- a/src/libide/greeter/ide-greeter-workspace.c
+++ b/src/libide/greeter/ide-greeter-workspace.c
@@ -650,6 +650,9 @@ ide_greeter_workspace_class_init (IdeGreeterWorkspaceClass *klass)
gtk_widget_class_bind_template_child (widget_class, IdeGreeterWorkspace, title);
gtk_widget_class_bind_template_callback (widget_class, stack_notify_visible_child_cb);
+ gtk_widget_class_add_binding_action (widget_class, GDK_KEY_Left, GDK_ALT_MASK, "win.page", "s",
"overview");
+ gtk_widget_class_add_binding_action (widget_class, GDK_KEY_w, GDK_CONTROL_MASK, "window.close", NULL);
+
g_type_ensure (IDE_TYPE_CLONE_SURFACE);
g_type_ensure (IDE_TYPE_GREETER_BUTTONS_SECTION);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]