[gnome-builder] project-tree: merge reveal menu item into source view context menu



commit a832fa3473deeca29737fc0eda83afc60ddd4e38
Author: Christian Hergert <chergert redhat com>
Date:   Thu Dec 3 22:30:12 2015 -0800

    project-tree: merge reveal menu item into source view context menu

 plugins/project-tree/gb-project-tree.gresource.xml |    1 +
 plugins/project-tree/gtk/menus.ui                  |   11 +++++++++++
 2 files changed, 12 insertions(+), 0 deletions(-)
---
diff --git a/plugins/project-tree/gb-project-tree.gresource.xml 
b/plugins/project-tree/gb-project-tree.gresource.xml
index f0d8208..8677229 100644
--- a/plugins/project-tree/gb-project-tree.gresource.xml
+++ b/plugins/project-tree/gb-project-tree.gresource.xml
@@ -2,5 +2,6 @@
 <gresources>
   <gresource prefix="/org/gnome/builder/plugins/project-tree-plugin">
     <file>gb-new-file-popover.ui</file>
+    <file>gtk/menus.ui</file>
   </gresource>
 </gresources>
diff --git a/plugins/project-tree/gtk/menus.ui b/plugins/project-tree/gtk/menus.ui
new file mode 100644
index 0000000..a3c240b
--- /dev/null
+++ b/plugins/project-tree/gtk/menus.ui
@@ -0,0 +1,11 @@
+<?xml version="1.0"?>
+<interface>
+  <menu id="ide-source-view-popup-menu">
+    <section id="ide-source-view-popup-menu-reveal-section">
+      <item>
+        <attribute name="label" translatable="yes">Re_veal in Project Tree</attribute>
+        <attribute name="action">project-tree.reveal</attribute>
+      </item>
+    </section>
+  </menu>
+</interface>


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