[gnome-builder/wip/gtk4-port: 504/736] plugins/editorui: add new-document-menu
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/gtk4-port: 504/736] plugins/editorui: add new-document-menu
- Date: Tue, 26 Apr 2022 01:46:29 +0000 (UTC)
commit 23788d4e71e7a97c48655bcfb445e65ccbf1c564
Author: Christian Hergert <chergert redhat com>
Date: Thu Apr 7 12:57:36 2022 -0700
plugins/editorui: add new-document-menu
This is to be displayed in the + button in the header bar.
src/plugins/editorui/gtk/menus.ui | 20 ++++++++++++++++++++
1 file changed, 20 insertions(+)
---
diff --git a/src/plugins/editorui/gtk/menus.ui b/src/plugins/editorui/gtk/menus.ui
index 6206386b0..2a4fb2532 100644
--- a/src/plugins/editorui/gtk/menus.ui
+++ b/src/plugins/editorui/gtk/menus.ui
@@ -88,4 +88,24 @@
</item>
</section>
</menu>
+ <menu id="new-document-menu">
+ <section id="new-document-section">
+ <attribute name="id">new-document-section</attribute>
+ <item>
+ <attribute name="id">new-file</attribute>
+ <attribute name="label" translatable="yes">New _File</attribute>
+ <attribute name="action">editorui.new-file</attribute>
+ <attribute name="accel"><primary>n</attribute>
+ </item>
+ </section>
+ <section id="open-document-section">
+ <attribute name="id">open-document-section</attribute>
+ <item>
+ <attribute name="id">open-file</attribute>
+ <attribute name="label" translatable="yes">_Open Fileā¦</attribute>
+ <attribute name="action">workbench.open</attribute>
+ <attribute name="accel"><primary>o</attribute>
+ </item>
+ </section>
+ </menu>
</interface>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]