[gnome-builder] layout: add some accels to layout stack menu
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] layout: add some accels to layout stack menu
- Date: Wed, 26 Sep 2018 08:24:42 +0000 (UTC)
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"><primary>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"><primary>s</attribute>
</item>
<item>
<attribute name="action">editor-view.save-as</attribute>
<attribute name="label" translatable="yes">Save _As</attribute>
+ <attribute name="accel"><primary><shift>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]