Commit 2f5b0bb7 authored by Jeremy Bicha's avatar Jeremy Bicha 🎹

Remove app menu

The app menu is being removed from GNOME 3.32

#8

Initiatives#4
parent 364db3cb
......@@ -190,8 +190,6 @@ ar_application_startup (GApplication *application)
{
ArApplication *self = AR_APPLICATION (application);
ArApplicationPrivate *priv = self->priv;
GMenu *menu;
GMenu *section;
G_APPLICATION_CLASS (ar_application_parent_class)->startup (application);
......@@ -204,28 +202,6 @@ ar_application_startup (GApplication *application)
app_entries, G_N_ELEMENTS (app_entries),
self);
menu = g_menu_new ();
section = g_menu_new ();
g_menu_append (section, _("New Game"), "app.new-game");
g_menu_append (section, _("Change Game"), "app.change-game");
g_menu_append_section (menu, NULL, G_MENU_MODEL (section));
section = g_menu_new ();
g_menu_append (section, _("Statistics"), "app.statistics");
g_menu_append (section, _("Fullscreen"), "app.fullscreen");
g_menu_append_section (menu, NULL, G_MENU_MODEL (section));
section = g_menu_new ();
g_menu_append (section, _("Help"), "app.help");
g_menu_append (section, _("About"), "app.about");
g_menu_append (section, _("Quit"), "app.quit");
g_menu_append_section (menu, NULL, G_MENU_MODEL (section));
gtk_application_set_app_menu (GTK_APPLICATION (application),
G_MENU_MODEL (menu));
gtk_application_add_accelerator (GTK_APPLICATION (application),
"F11", "app.fullscreen", NULL);
gtk_application_add_accelerator (GTK_APPLICATION (application),
......
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