Commit 3356cb0c authored by Sébastien Wilmet's avatar Sébastien Wilmet

Remove app menu

To follow the GNOME goal:
https://wiki.gnome.org/Initiatives/GnomeGoals/AppMenuRetirement
parent 539d32fd
......@@ -65,6 +65,5 @@ src/structure.vala
src/symbols.vala
src/symbols_view.vala
src/tab_label.vala
[type: gettext/glade]src/ui/menus.ui
[type: gettext/glade]src/ui/preferences_dialog.ui
src/utils.vala
......@@ -5,10 +5,6 @@
<file>ui/gnome-latex.adwaita.css</file>
</gresource>
<gresource prefix="/org/gnome/gnome-latex/gtk">
<file alias="menus.ui" preprocess="xml-stripblanks">ui/menus.ui</file>
</gresource>
<gresource prefix="/org/gnome/gnome-latex/icons/16x16/actions">
<file alias="compile_dvi.png" preprocess="to-pixdata">../data/icons/16x16/actions/compile_dvi.png</file>
<file alias="compile_pdf.png" preprocess="to-pixdata">../data/icons/16x16/actions/compile_pdf.png</file>
......
......@@ -123,17 +123,6 @@ public class GlatexApp : Gtk.Application
add_action_entries (_app_actions, this);
Latexila.latex_commands_add_action_infos (this);
GLib.MenuModel manual_app_menu = get_menu_by_id ("manual-app-menu");
if (manual_app_menu == null)
warning ("manual-app-menu not available.");
// The menubar contains everything, so we don't need the fallback app
// menu on desktops that don't support app menus (e.g. on Xfce).
if (prefers_app_menu ())
{
set_app_menu (manual_app_menu);
}
Latexila.utils_register_icons ();
StockIcons.register_stock_icons ();
setup_theme_extensions ();
......
......@@ -5,7 +5,6 @@ dist_ui_DATA = \
ui.xml
EXTRA_DIST = \
gnome-latex.adwaita.css \
menus.ui
gnome-latex.adwaita.css
-include $(top_srcdir)/git.mk
<?xml version="1.0"?>
<interface>
<!-- The app menu is set manually if needed. -->
<menu id="manual-app-menu">
<section>
<item>
<attribute name="label" translatable="yes">_New Window</attribute>
<attribute name="action">app.tepl-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">_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>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment