[latexila/wip/app-menu] Add an app menu
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [latexila/wip/app-menu] Add an app menu
- Date: Fri, 6 Nov 2015 10:30:51 +0000 (UTC)
commit 8cb24743dc332c64a2048d9f882f98d54bedb191
Author: Sébastien Wilmet <swilmet gnome org>
Date: Fri Nov 6 11:27:00 2015 +0100
Add an app menu
Better late than never. It's redundant with the menubar, but it's better
to keep the items in the menubar too because the app menu is difficult
to discover. The app menu is just to make GNOME people happy (but IIRC
I've never received any complaints about the lack of app menu in
LaTeXila).
po/POTFILES.in | 1 +
src/latexila.gresource.xml | 1 +
src/ui/Makefile.am | 4 +++-
src/ui/app_menu.ui | 39 +++++++++++++++++++++++++++++++++++++++
4 files changed, 44 insertions(+), 1 deletions(-)
---
diff --git a/po/POTFILES.in b/po/POTFILES.in
index e7c31ef..addb6a1 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -62,5 +62,6 @@ src/structure.vala
src/symbols.vala
src/symbols_view.vala
src/tab_info_bar.vala
+[type: gettext/glade]src/ui/app_menu.ui
[type: gettext/glade]src/ui/preferences_dialog.ui
src/utils.vala
diff --git a/src/latexila.gresource.xml b/src/latexila.gresource.xml
index a2878c8..1a7dc1e 100644
--- a/src/latexila.gresource.xml
+++ b/src/latexila.gresource.xml
@@ -2,6 +2,7 @@
<gresources>
<gresource prefix="/org/gnome/latexila">
+ <file>ui/app_menu.ui</file>
<file>ui/latexila.adwaita.css</file>
</gresource>
diff --git a/src/ui/Makefile.am b/src/ui/Makefile.am
index c1251b9..5bfddc1 100644
--- a/src/ui/Makefile.am
+++ b/src/ui/Makefile.am
@@ -4,6 +4,8 @@ dist_ui_DATA = \
preferences_dialog.ui \
ui.xml
-EXTRA_DIST = latexila.adwaita.css
+EXTRA_DIST = \
+ app_menu.ui \
+ latexila.adwaita.css
-include $(top_srcdir)/git.mk
diff --git a/src/ui/app_menu.ui b/src/ui/app_menu.ui
new file mode 100644
index 0000000..295c1a8
--- /dev/null
+++ b/src/ui/app_menu.ui
@@ -0,0 +1,39 @@
+<?xml version="1.0"?>
+<interface>
+ <menu id="app_menu">
+ <section>
+ <item>
+ <attribute name="label" translatable="yes">_New Window</attribute>
+ <attribute name="action">app.new_window</attribute>
+ </item>
+ </section>
+ <section>
+ <item>
+ <attribute name="label" translatable="yes">_Preferences</attribute>
+ <attribute name="action">app.preferences</attribute>
+ </item>
+ <item>
+ <attribute name="label" translatable="yes">_Manage Build Tools</attribute>
+ <attribute name="action">app.manage_build_tools</attribute>
+ </item>
+ </section>
+ <section>
+ <item>
+ <attribute name="label" translatable="yes">_Help</attribute>
+ <attribute name="action">app.help</attribute>
+ </item>
+ <item>
+ <attribute name="label" translatable="yes">LaTeXila _Fundraiser</attribute>
+ <attribute name="action">app.fundraiser</attribute>
+ </item>
+ <item>
+ <attribute name="label" translatable="yes">_About</attribute>
+ <attribute name="action">app.about</attribute>
+ </item>
+ <item>
+ <attribute name="label" translatable="yes">_Quit</attribute>
+ <attribute name="action">app.quit</attribute>
+ </item>
+ </section>
+ </menu>
+</interface>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]