summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXan Lopez <xan@igalia.com>2012-01-26 10:34:23 +0100
committerXan Lopez <xan@igalia.com>2012-01-26 10:35:38 +0100
commit6ef033c1ed5f1626ce565f72664e258f8ef3cc79 (patch)
tree41cced8678794f111962088f7c76b1f7460f6cb6
parent6697ac29a87afd06c2755d2fb4d87069cad6cf68 (diff)
downloadepiphany-6ef033c1ed5f1626ce565f72664e258f8ef3cc79.tar.gz
Adapt to the new format form global menus
This requires a GTK+ newer than eed30771.
-rw-r--r--configure.ac2
-rw-r--r--data/ui/epiphany-application-menu.ui53
2 files changed, 42 insertions, 13 deletions
diff --git a/configure.ac b/configure.ac
index 25d4d793c..ac5ee4766 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 62f214092..74ec40606 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>
-