[aisleriot] Remove app menu



commit 2f5b0bb7d9b7e5311b215955b415ff54e0a090b0
Author: Jeremy Bicha <jbicha ubuntu com>
Date:   Sat Jan 5 23:16:28 2019 -0500

    Remove app menu
    
    The app menu is being removed from GNOME 3.32
    
    https://gitlab.gnome.org/GNOME/aisleriot/issues/8
    
    https://gitlab.gnome.org/GNOME/Initiatives/issues/4

 src/ar-application.c | 24 ------------------------
 1 file changed, 24 deletions(-)
---
diff --git a/src/ar-application.c b/src/ar-application.c
index 0f8f4f0a..d0e2214e 100644
--- a/src/ar-application.c
+++ b/src/ar-application.c
@@ -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),


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]