[gnome-latex/wip/misc] Remove app menu
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-latex/wip/misc] Remove app menu
- Date: Wed, 24 Oct 2018 15:26:54 +0000 (UTC)
commit 3356cb0c949780d0ed3ea392dcca17a6c4cb5c06
Author: Sébastien Wilmet <swilmet gnome org>
Date: Wed Oct 24 17:23:36 2018 +0200
Remove app menu
To follow the GNOME goal:
https://wiki.gnome.org/Initiatives/GnomeGoals/AppMenuRetirement
po/POTFILES.in | 1 -
src/glatex.gresource.xml | 4 ----
src/glatex_app.vala | 11 -----------
src/ui/Makefile.am | 3 +--
src/ui/menus.ui | 36 ------------------------------------
5 files changed, 1 insertion(+), 54 deletions(-)
---
diff --git a/po/POTFILES.in b/po/POTFILES.in
index a00b0dc..8c2bf9b 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -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
diff --git a/src/glatex.gresource.xml b/src/glatex.gresource.xml
index cf51ec8..b54d633 100644
--- a/src/glatex.gresource.xml
+++ b/src/glatex.gresource.xml
@@ -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>
diff --git a/src/glatex_app.vala b/src/glatex_app.vala
index d6072ce..23df187 100644
--- a/src/glatex_app.vala
+++ b/src/glatex_app.vala
@@ -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 ();
diff --git a/src/ui/Makefile.am b/src/ui/Makefile.am
index 68b4ef4..93a1650 100644
--- a/src/ui/Makefile.am
+++ b/src/ui/Makefile.am
@@ -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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]