[gnome-builder] menus: move new/open menus to the new button
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] menus: move new/open menus to the new button
- Date: Fri, 21 Jul 2017 23:41:01 +0000 (UTC)
commit 6f129528555e7fef0c6958487b14bc69cbcf5ae9
Author: Christian Hergert <chergert redhat com>
Date: Fri Jul 21 16:40:52 2017 -0700
menus: move new/open menus to the new button
It would be nice if we could filter some of these by the current
perspective, but that requires a filter menu to land in libdazzle first.
data/gtk/menus.ui | 12 ------------
plugins/sysprof/gtk/menus.ui | 8 +++++---
2 files changed, 5 insertions(+), 15 deletions(-)
---
diff --git a/data/gtk/menus.ui b/data/gtk/menus.ui
index a813bcf..f3b963d 100644
--- a/data/gtk/menus.ui
+++ b/data/gtk/menus.ui
@@ -74,18 +74,6 @@
</section>
</menu>
<menu id="gear-menu">
- <section id="gear-menu-new-section">
- <item>
- <attribute name="label" translatable="yes">_New File</attribute>
- <attribute name="action">editor.new-file</attribute>
- </item>
- </section>
- <section id="gear-menu-open-section">
- <item>
- <attribute name="label" translatable="yes">_Open File…</attribute>
- <attribute name="action">win.open-with-dialog</attribute>
- </item>
- </section>
<section id="gear-menu-save-section">
<item>
<attribute name="label" translatable="yes">Save _All</attribute>
diff --git a/plugins/sysprof/gtk/menus.ui b/plugins/sysprof/gtk/menus.ui
index e00a3f3..493c180 100644
--- a/plugins/sysprof/gtk/menus.ui
+++ b/plugins/sysprof/gtk/menus.ui
@@ -1,9 +1,11 @@
<?xml version="1.0"?>
<interface>
- <menu id="gear-menu">
- <section id="gear-menu-open-section">
+ <menu id="new-document-menu">
+ <section id="open-document-section">
<item>
- <attribute name="label" translatable="yes">Open Profile…</attribute>
+ <attribute name="id">open-sysprof-capture</attribute>
+ <attribute name="after">open-file</attribute>
+ <attribute name="label" translatable="yes">Open Sysprof Capture…</attribute>
<attribute name="action">profiler.open-profile</attribute>
</item>
</section>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]