[epiphany] Adapt to the new format form global menus



commit 6ef033c1ed5f1626ce565f72664e258f8ef3cc79
Author: Xan Lopez <xan igalia com>
Date:   Thu Jan 26 10:34:23 2012 +0100

    Adapt to the new format form global menus
    
    This requires a GTK+ newer than eed30771.

 configure.ac                         |    2 +-
 data/ui/epiphany-application-menu.ui |   53 ++++++++++++++++++++++++++-------
 2 files changed, 42 insertions(+), 13 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 25d4d79..ac5ee47 100644
--- a/configure.ac
+++ b/configure.ac
@@ -84,7 +84,7 @@ if test "$enable_maintainer_mode" = "yes"; then
 fi
 
 GLIB_REQUIRED=2.31.2
-GTK_REQUIRED=3.3.8
+GTK_REQUIRED=3.3.11
 LIBXML_REQUIRED=2.6.12
 LIBXSLT_REQUIRED=1.1.7
 WEBKIT_GTK_REQUIRED=1.7.3
diff --git a/data/ui/epiphany-application-menu.ui b/data/ui/epiphany-application-menu.ui
index 62f2140..74ec406 100644
--- a/data/ui/epiphany-application-menu.ui
+++ b/data/ui/epiphany-application-menu.ui
@@ -1,24 +1,53 @@
-<?xml version="1.0" encoding="UTF-8"?>
+<?xml version="1.0"?>
 <interface>
-  <menu id='app-menu'>
+  <menu id="app-menu">
     <section>
-      <item label='_New Window' action='app.new' accel='<Primary>n' />
+      <item>
+        <attribute name="label" translatable="yes">_New Window</attribute>
+        <attribute name="action">app.new</attribute>
+        <attribute name="accel">&lt;Primary&gt;n</attribute>
+      </item>
     </section>
     <section>
-      <item label='_Bookmarks' action='app.bookmarks' accel='<Primary>b' />
-      <item label='_History' action='app.history' accel='<Primary>h' />
+      <item>
+        <attribute name="label" translatable="yes">_Bookmarks</attribute>
+        <attribute name="action">app.bookmarks</attribute>
+        <attribute name="accel">&lt;Primary&gt;b</attribute>
+      </item>
+      <item>
+        <attribute name="label" translatable="yes">_History</attribute>
+        <attribute name="action">app.history</attribute>
+        <attribute name="accel">&lt;Primary&gt;h</attribute>
+      </item>
     </section>
     <section>
-      <item label='Preferences' action='app.preferences' />
-      <item label='Personal Data' action='app.pdm' />
+      <item>
+        <attribute name="label" translatable="yes">Preferences</attribute>
+        <attribute name="action">app.preferences</attribute>
+      </item>
+      <item>
+        <attribute name="label" translatable="yes">Personal Data</attribute>
+        <attribute name="action">app.pdm</attribute>
+      </item>
     </section>
     <section>
-      <item label='_Help' action='app.help' accel='<Primary>h' />
-      <item label='_About' action='app.about' accel='<Primary>a' />
+      <item>
+        <attribute name="label" translatable="yes">_Help</attribute>
+        <attribute name="action">app.help</attribute>
+        <attribute name="accel">&lt;Primary&gt;h</attribute>
+      </item>
+      <item>
+        <attribute name="label" translatable="yes">_About</attribute>
+        <attribute name="action">app.about</attribute>
+        <attribute name="accel">&lt;Primary&gt;a</attribute>
+      </item>
     </section>
-    <section>      
-      <item label='_Quit' action='app.quit' accel='<Primary>q' />
+    <section>
+      <item>
+        <attribute name="label" translatable="yes">_Quit</attribute>
+        <attribute name="action">app.quit</attribute>
+        <attribute name="accel">&lt;Primary&gt;q</attribute>
+      </item>
     </section>
   </menu>
 </interface>
-



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