[gnome-builder] view: use menu item attributes instead of builder ids



commit 689513fe30d0362a3d0d1f968556fe79a30bc4f5
Author: Christian Hergert <christian hergert me>
Date:   Thu Sep 3 22:39:56 2015 -0700

    view: use menu item attributes instead of builder ids

 data/ui/gb-view.ui |   20 ++++++++++----------
 1 files changed, 10 insertions(+), 10 deletions(-)
---
diff --git a/data/ui/gb-view.ui b/data/ui/gb-view.ui
index f5f1bf5..fd2ccdc 100644
--- a/data/ui/gb-view.ui
+++ b/data/ui/gb-view.ui
@@ -4,7 +4,7 @@
   <template class="GbView" parent="GtkBox">
   </template>
   <menu id="menu">
-    <section id="split-section">
+    <section>
       <attribute name="id">splits-section</attribute>
       <attribute name="display-hint">horizontal-buttons</attribute>
       <attribute name="label" translatable="yes">Split</attribute>
@@ -24,7 +24,7 @@
         <attribute name="verb-icon">builder-split-tab-symbolic</attribute>
       </item>
     </section>
-    <section id="move-section">
+    <section>
       <attribute name="id">move-section</attribute>
       <attribute name="display-hint">horizontal-buttons</attribute>
       <attribute name="label" translatable="yes">Move</attribute>
@@ -39,13 +39,11 @@
         <attribute name="verb-icon">builder-move-right-symbolic</attribute>
       </item>
     </section>
-    <section id="preview-section">
-      <item>
-        <attribute name="label" translatable="yes">Pre_view</attribute>
-        <attribute name="action">view.preview</attribute>
-      </item>
+    <section>
+      <attribute name="id">preview-section</attribute>
     </section>
-    <section id="save-section">
+    <section>
+      <attribute name="id">save-section</attribute>
       <item>
         <attribute name="label" translatable="yes">_Save</attribute>
         <attribute name="action">view.save</attribute>
@@ -55,13 +53,15 @@
         <attribute name="action">view.save-as</attribute>
       </item>
     </section>
-    <section id="print-section">
+    <section>
+      <attribute name="id">print-section</attribute>
       <item>
         <attribute name="label" translatable="yes">Print</attribute>
         <attribute name="action">view.print</attribute>
       </item>
     </section>
-    <section id="close-section">
+    <section>
+      <attribute name="id">close-section</attribute>
       <item>
         <attribute name="label" translatable="yes">_Close</attribute>
         <attribute name="action">view-stack.close</attribute>


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