From bf1472b0095a5b2e671ff6bfedad18331347d9fb Mon Sep 17 00:00:00 2001 From: Christian Hergert Date: Mon, 24 Sep 2018 20:55:20 -0700 Subject: [PATCH] app-menu: move to using window menu instead of app-menu This starts moving things towards our 3.32 goals of using window menus intead of the app-menu. --- src/resources/gtk/menus.ui | 35 ----------------------- src/resources/sysprof.gresource.xml | 1 - src/resources/ui/sp-window.ui | 44 +++++++++++++++++++++++++++-- 3 files changed, 42 insertions(+), 38 deletions(-) delete mode 100644 src/resources/gtk/menus.ui diff --git a/src/resources/gtk/menus.ui b/src/resources/gtk/menus.ui deleted file mode 100644 index ccdbb94c..00000000 --- a/src/resources/gtk/menus.ui +++ /dev/null @@ -1,35 +0,0 @@ - - - -
- - _New Window - app.new-window - -
-
- - _Open Capture - app.open-capture - -
-
- - About - app.about - - - Help - app.help - - - Keyboard Shortcuts - app.show-help-overlay - - - _Quit - app.quit - -
-
-
diff --git a/src/resources/sysprof.gresource.xml b/src/resources/sysprof.gresource.xml index c074c1c1..8fed68dc 100644 --- a/src/resources/sysprof.gresource.xml +++ b/src/resources/sysprof.gresource.xml @@ -2,7 +2,6 @@ - gtk/menus.ui gtk/help-overlay.ui diff --git a/src/resources/ui/sp-window.ui b/src/resources/ui/sp-window.ui index 0bd7b6d5..12b8dea4 100644 --- a/src/resources/ui/sp-window.ui +++ b/src/resources/ui/sp-window.ui @@ -261,17 +261,30 @@ true + + + app.new-window + New Window + true + + + + + horizontal + true + + win.open-capture - Open + Open Capture… true win.save-capture - Save As + Save As… true @@ -301,6 +314,33 @@ true + + + horizontal + true + + + + + app.show-help-overlay + Keyboard Shortcuts + true + + + + + app.help + Help + true + + + + + app.about + About Sysprof + true + +