[gnome-builder] layout: add some accels to layout stack menu



commit 20164d55f0005775c38f78149fa6eb481c85dab4
Author: Christian Hergert <chergert redhat com>
Date:   Wed Sep 26 01:22:37 2018 -0700

    layout: add some accels to layout stack menu

 src/libide/editor/gtk/menus.ui               | 3 +++
 src/libide/layout/ide-layout-stack-header.ui | 1 +
 2 files changed, 4 insertions(+)
---
diff --git a/src/libide/editor/gtk/menus.ui b/src/libide/editor/gtk/menus.ui
index 2985b2430..121e973de 100644
--- a/src/libide/editor/gtk/menus.ui
+++ b/src/libide/editor/gtk/menus.ui
@@ -92,6 +92,7 @@
       <item>
         <attribute name="label" translatable="yes">Print…</attribute>
         <attribute name="action">editor-view.print</attribute>
+        <attribute name="accel">&lt;primary&gt;p</attribute>
       </item>
     </section>
     <section id="editor-document-preferences-section">
@@ -106,10 +107,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 51c2f363c..7cd68211a 100644
--- a/src/libide/layout/ide-layout-stack-header.ui
+++ b/src/libide/layout/ide-layout-stack-header.ui
@@ -170,6 +170,7 @@
       <object class="DzlMenuButton" id="document_button">
         <property name="focus-on-click">false</property>
         <property name="icon-name">pan-down-symbolic</property>
+        <property name="show-accels">true</property>
         <property name="show-arrow">false</property>
         <property name="show-icons">true</property>
         <property name="visible">true</property>


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