From e45bd8910b783f0c04955d55279491c9bbe2d1c5 Mon Sep 17 00:00:00 2001 From: Christian Hergert Date: Wed, 19 Jul 2023 16:54:10 -0700 Subject: [PATCH] sysprof: move view menu into callgraph menu model This avoids having the extra menu in the header bar and instead puts it where it has the most value, the callgraph. --- src/sysprof/sysprof-callgraph-view.ui | 18 ++++++++++++++-- src/sysprof/sysprof-window.ui | 30 --------------------------- 2 files changed, 16 insertions(+), 32 deletions(-) diff --git a/src/sysprof/sysprof-callgraph-view.ui b/src/sysprof/sysprof-callgraph-view.ui index 0933a812..0a470a3d 100644 --- a/src/sysprof/sysprof-callgraph-view.ui +++ b/src/sysprof/sysprof-callgraph-view.ui @@ -214,12 +214,26 @@
- Callgraph - Set Function as Root + Make Function Root callgraph.make-descendant-root
+
+ Options + + Hide System Libraries + win.callgraph.hide-system-libraries + + + Include Threads + win.callgraph.include-threads + + + Bottom Up + win.callgraph.bottom-up + +
]]> diff --git a/src/sysprof/sysprof-window.ui b/src/sysprof/sysprof-window.ui index c33bd47d..bd1b9521 100644 --- a/src/sysprof/sysprof-window.ui +++ b/src/sysprof/sysprof-window.ui @@ -145,12 +145,6 @@ primary_menu - - - document-properties-symbolic - view_menu - - dock-right-symbolic @@ -301,28 +295,4 @@ - -
- - Show Sidebar - win.show-left-sidebar - F9 - -
-
- Callgraph - - Hide System Libraries - win.callgraph.hide-system-libraries - - - Include Threads - win.callgraph.include-threads - - - Bottom Up - win.callgraph.bottom-up - -
-