[gnome-builder/gnome-builder-3-30] editor: add accels to layout menu



commit 0b0e7b9c573826952a867c4a257a67d99b39c2a4
Author: Christian Hergert <chergert redhat com>
Date:   Mon Oct 1 19:21:13 2018 -0700

    editor: add accels to layout menu

 src/libide/editor/gtk/menus.ui               | 2 ++
 src/libide/layout/ide-layout-stack-header.ui | 1 +
 2 files changed, 3 insertions(+)
---
diff --git a/src/libide/editor/gtk/menus.ui b/src/libide/editor/gtk/menus.ui
index 2985b2430..8af3aab80 100644
--- a/src/libide/editor/gtk/menus.ui
+++ b/src/libide/editor/gtk/menus.ui
@@ -106,10 +106,12 @@
       <item>
         <attribute name="action">editor-view.save</attribute>
         <attribute name="label" translatable="yes">_Save</attribute>
+       <attribute name="accel">&lt;primary&gt;s</attribute>
       </item>
       <item>
         <attribute name="action">editor-view.save-as</attribute>
         <attribute name="label" translatable="yes">Save _As</attribute>
+       <attribute name="accel">&lt;primary&gt;&lt;shift&gt;s</attribute>
       </item>
     </section>
     <section id="editor-document-close-section">
diff --git a/src/libide/layout/ide-layout-stack-header.ui b/src/libide/layout/ide-layout-stack-header.ui
index 413e2b7c7..fec49d712 100644
--- a/src/libide/layout/ide-layout-stack-header.ui
+++ b/src/libide/layout/ide-layout-stack-header.ui
@@ -172,6 +172,7 @@
         <property name="icon-name">pan-down-symbolic</property>
         <property name="show-arrow">false</property>
         <property name="show-icons">true</property>
+        <property name="show-accels">true</property>
         <property name="visible">true</property>
       </object>
       <packing>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]