[gnome-builder] workbench: fix save-all shortcut
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] workbench: fix save-all shortcut
- Date: Thu, 14 Dec 2017 08:47:57 +0000 (UTC)
commit 59c6f8628718ea2eabc8c35b400d735f5c0179f8
Author: Christian Hergert <chergert redhat com>
Date: Thu Dec 14 00:47:40 2017 -0800
workbench: fix save-all shortcut
src/libide/gtk/menus.ui | 2 +-
src/libide/workbench/ide-workbench-shortcuts.c | 12 ++++++++++++
2 files changed, 13 insertions(+), 1 deletions(-)
---
diff --git a/src/libide/gtk/menus.ui b/src/libide/gtk/menus.ui
index f829c00..ab110ad 100644
--- a/src/libide/gtk/menus.ui
+++ b/src/libide/gtk/menus.ui
@@ -60,7 +60,7 @@
<item>
<attribute name="label" translatable="yes">Save _All</attribute>
<attribute name="action">win.save-all</attribute>
- <attribute name="accel"><primary><shift>s</attribute>
+ <attribute name="accel"><primary><alt>s</attribute>
</item>
</section>
</menu>
diff --git a/src/libide/workbench/ide-workbench-shortcuts.c b/src/libide/workbench/ide-workbench-shortcuts.c
index cb53ea7..7ca6d2e 100644
--- a/src/libide/workbench/ide-workbench-shortcuts.c
+++ b/src/libide/workbench/ide-workbench-shortcuts.c
@@ -45,6 +45,12 @@ static DzlShortcutEntry workbench_shortcuts[] = {
NC_("shortcut window", "Workbench shortcuts"),
NC_("shortcut window", "Build and Run"),
NC_("shortcut window", "Trigger a build") },
+
+ { "org.gnome.builder.workbench.save-all",
+ 0, NULL,
+ NC_("shortcut window", "Workbench shortcuts"),
+ NC_("shortcut window", "General"),
+ NC_("shortcut window", "Save all files") },
};
void
@@ -114,6 +120,12 @@ _ide_workbench_init_shortcuts (IdeWorkbench *self)
DZL_SHORTCUT_PHASE_CAPTURE | DZL_SHORTCUT_PHASE_GLOBAL,
I_("build-manager.build"));
+ dzl_shortcut_controller_add_command_action (controller,
+ I_("org.gnome.builder.workbench.save-all"),
+ "<Primary><Alt>s",
+ DZL_SHORTCUT_PHASE_CAPTURE | DZL_SHORTCUT_PHASE_GLOBAL,
+ I_("win.save-all"));
+
dzl_shortcut_manager_add_shortcut_entries (NULL,
workbench_shortcuts,
G_N_ELEMENTS (workbench_shortcuts),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]