[gnome-builder/wip/chergert/layout] menus: add menus for new-document button
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/chergert/layout] menus: add menus for new-document button
- Date: Sat, 8 Jul 2017 21:59:51 +0000 (UTC)
commit 0cc26b64fa4e397ee7a30c785a30ca715a85d58e
Author: Christian Hergert <chergert redhat com>
Date: Sat Jul 8 14:59:04 2017 -0700
menus: add menus for new-document button
This will be added shortly, but we can commit the mergeable
menus already now that libdazzle has the necessary reverse
mergeability support.
data/gtk/menus.ui | 16 ++++++++++++++++
plugins/devhelp/gtk/menus.ui | 10 ++++++++++
plugins/terminal/gtk/menus.ui | 11 +++++++++++
3 files changed, 37 insertions(+), 0 deletions(-)
---
diff --git a/data/gtk/menus.ui b/data/gtk/menus.ui
index d48c055..e39bb2c 100644
--- a/data/gtk/menus.ui
+++ b/data/gtk/menus.ui
@@ -238,6 +238,22 @@
</item>
</section>
</menu>
+ <menu id="new-document-menu">
+ <section id="new-document-section">
+ <item>
+ <attribute name="id">new-file</attribute>
+ <attribute name="label" translatable="yes">New File</attribute>
+ <attribute name="action">editor.new-file</attribute>
+ </item>
+ </section>
+ <section id="open-document-section">
+ <item>
+ <attribute name="id">open-file</attribute>
+ <attribute name="label" translatable="yes">Open Fileā¦</attribute>
+ <attribute name="action">win.open-with-dialog</attribute>
+ </item>
+ </section>
+ </menu>
<menu id="ide-editor-view-document-menu">
<section id="editor-document-section">
<attribute name="label" translatable="yes">Document</attribute>
diff --git a/plugins/devhelp/gtk/menus.ui b/plugins/devhelp/gtk/menus.ui
index 85179ae..c5a4e82 100644
--- a/plugins/devhelp/gtk/menus.ui
+++ b/plugins/devhelp/gtk/menus.ui
@@ -13,4 +13,14 @@
</item>
</section>
</menu>
+ <menu id="new-document-menu">
+ <section id="new-document-section">
+ <item>
+ <attribute name="id">new-documentation-page</attribute>
+ <attribute name="after">new-file</attribute>
+ <attribute name="label" translatable="yes">New Documentation Page</attribute>
+ <attribute name="action">devhelp.new-view</attribute>
+ </item>
+ </section>
+ </menu>
</interface>
diff --git a/plugins/terminal/gtk/menus.ui b/plugins/terminal/gtk/menus.ui
index 6a71684..fa43ec0 100644
--- a/plugins/terminal/gtk/menus.ui
+++ b/plugins/terminal/gtk/menus.ui
@@ -79,4 +79,15 @@
</item>
</section>
</menu>
+ <menu id="new-document-menu">
+ <section id="new-document-section">
+ <item>
+ <attribute name="id">new-terminal</attribute>
+ <attribute name="after">new-file</attribute>
+ <attribute name="before">new-documentation-page</attribute>
+ <attribute name="label" translatable="yes">New Terminal</attribute>
+ <attribute name="action">win.new-terminal</attribute>
+ </item>
+ </section>
+ </menu>
</interface>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]