From 5cffec44562eaaa8a11aee71ec6e82e955658f35 Mon Sep 17 00:00:00 2001 From: Christopher Davis Date: Sun, 4 Nov 2018 02:09:19 -0500 Subject: [PATCH] Retire app-menu For https://gitlab.gnome.org/GNOME/Initiatives/issues/4, the application menu is being retired, with it's contents being moved into the in-window primary window. When removing a menu, the shortcuts for it's actions (if defined in the menu) are also removed. The "Quit" shortcut is now defined in src/gcal-window.c. Related to https://gitlab.gnome.org/GNOME/gnome-calendar/issues/319 --- data/ui/menus.ui | 23 ----------------------- data/ui/window.ui | 39 +++++++++++++++++++++++++++++++++++++++ src/gcal-window.c | 1 + 3 files changed, 40 insertions(+), 23 deletions(-) diff --git a/data/ui/menus.ui b/data/ui/menus.ui index a1fd8f36..549b5ef3 100644 --- a/data/ui/menus.ui +++ b/data/ui/menus.ui @@ -1,28 +1,5 @@ - -
- - _Calendars - win.show-calendars - -
-
- - _Keyboard Shortcuts - win.show-help-overlay - - - _About - app.about - - - _Quit - app.quit - <Primary>q - -
-
diff --git a/data/ui/window.ui b/data/ui/window.ui index 63612326..f304b146 100644 --- a/data/ui/window.ui +++ b/data/ui/window.ui @@ -395,6 +395,45 @@ _Weather + + + + True + + + + + + + True + win.show-calendars + _Calendars + + + + + + True + + + + + + + True + win.show-help-overlay + _Keyboard Shortcuts + + + + + + + True + app.about + _About Calendar + + diff --git a/src/gcal-window.c b/src/gcal-window.c index ffe17473..46ee5301 100644 --- a/src/gcal-window.c +++ b/src/gcal-window.c @@ -1570,6 +1570,7 @@ gcal_window_init (GcalWindow *self) gcal_window_add_accelerator (app, "win.change-view(2)", "2"); gcal_window_add_accelerator (app, "win.change-view(3)", "3"); gcal_window_add_accelerator (app, "win.toggle-search-bar", "f"); + gcal_window_add_accelerator (app, "app.quit", "q"); } /**