mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2026-02-12 16:10:54 +00:00
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.
This commit is contained in:
@ -214,12 +214,26 @@
|
|||||||
</template>
|
</template>
|
||||||
<menu id="menu_model">
|
<menu id="menu_model">
|
||||||
<section>
|
<section>
|
||||||
<attribute name="label" translatable="yes">Callgraph</attribute>
|
|
||||||
<item>
|
<item>
|
||||||
<attribute name="label" translatable="yes">Set Function as Root</attribute>
|
<attribute name="label" translatable="yes">Make Function Root</attribute>
|
||||||
<attribute name="action">callgraph.make-descendant-root</attribute>
|
<attribute name="action">callgraph.make-descendant-root</attribute>
|
||||||
</item>
|
</item>
|
||||||
</section>
|
</section>
|
||||||
|
<section>
|
||||||
|
<attribute name="label" translatable="yes">Options</attribute>
|
||||||
|
<item>
|
||||||
|
<attribute name="label" translatable="yes">Hide System Libraries</attribute>
|
||||||
|
<attribute name="action">win.callgraph.hide-system-libraries</attribute>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<attribute name="label" translatable="yes">Include Threads</attribute>
|
||||||
|
<attribute name="action">win.callgraph.include-threads</attribute>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<attribute name="label" translatable="yes">Bottom Up</attribute>
|
||||||
|
<attribute name="action">win.callgraph.bottom-up</attribute>
|
||||||
|
</item>
|
||||||
|
</section>
|
||||||
</menu>
|
</menu>
|
||||||
</interface>
|
</interface>
|
||||||
]]></property>
|
]]></property>
|
||||||
|
|||||||
@ -145,12 +145,6 @@
|
|||||||
<property name="menu-model">primary_menu</property>
|
<property name="menu-model">primary_menu</property>
|
||||||
</object>
|
</object>
|
||||||
</child>
|
</child>
|
||||||
<child type="end">
|
|
||||||
<object class="GtkMenuButton">
|
|
||||||
<property name="icon-name">document-properties-symbolic</property>
|
|
||||||
<property name="menu-model">view_menu</property>
|
|
||||||
</object>
|
|
||||||
</child>
|
|
||||||
<child type="end">
|
<child type="end">
|
||||||
<object class="GtkToggleButton" id="show_right_sidebar">
|
<object class="GtkToggleButton" id="show_right_sidebar">
|
||||||
<property name="icon-name">dock-right-symbolic</property>
|
<property name="icon-name">dock-right-symbolic</property>
|
||||||
@ -301,28 +295,4 @@
|
|||||||
</item>
|
</item>
|
||||||
</section>
|
</section>
|
||||||
</menu>
|
</menu>
|
||||||
<menu id="view_menu">
|
|
||||||
<section>
|
|
||||||
<item>
|
|
||||||
<attribute name="label" translatable="yes">Show Sidebar</attribute>
|
|
||||||
<attribute name="action">win.show-left-sidebar</attribute>
|
|
||||||
<attribute name="accel">F9</attribute>
|
|
||||||
</item>
|
|
||||||
</section>
|
|
||||||
<section>
|
|
||||||
<attribute name="label" translatable="yes">Callgraph</attribute>
|
|
||||||
<item>
|
|
||||||
<attribute name="label" translatable="yes">Hide System Libraries</attribute>
|
|
||||||
<attribute name="action">win.callgraph.hide-system-libraries</attribute>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<attribute name="label" translatable="yes">Include Threads</attribute>
|
|
||||||
<attribute name="action">win.callgraph.include-threads</attribute>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<attribute name="label" translatable="yes">Bottom Up</attribute>
|
|
||||||
<attribute name="action">win.callgraph.bottom-up</attribute>
|
|
||||||
</item>
|
|
||||||
</section>
|
|
||||||
</menu>
|
|
||||||
</interface>
|
</interface>
|
||||||
|
|||||||
Reference in New Issue
Block a user