mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 10:50:10 +00:00
inspector: Reorganize stack
There are too many stack elements in the main stack. So add a substack for the pages that display common global state. The appropriate name I found for it was "Global". It's used to house the General, Visual, Resources and Statistics pages for now.
This commit is contained in:
parent
c60df96deb
commit
4ebbb19e25
@ -67,48 +67,70 @@
|
|||||||
</packing>
|
</packing>
|
||||||
</child>
|
</child>
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkToggleButton" id="record_statistics_button">
|
<object class="GtkStack" id="global_button_stack">
|
||||||
<property name="focus-on-click">0</property>
|
<property name="visible-child-name" bind-source="global_stack" bind-property="visible-child-name"/>
|
||||||
<property name="tooltip-text" translatable="yes">Collect Statistics</property>
|
|
||||||
<property name="halign">start</property>
|
|
||||||
<property name="valign">center</property>
|
|
||||||
<property name="icon-name">media-record-symbolic</property>
|
|
||||||
</object>
|
|
||||||
<packing>
|
|
||||||
<property name="name">statistics</property>
|
|
||||||
</packing>
|
|
||||||
</child>
|
|
||||||
<child>
|
|
||||||
<object class="GtkStack" id="resource_buttons">
|
|
||||||
<property name="halign">start</property>
|
|
||||||
<property name="valign">center</property>
|
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkButton">
|
<object class="GtkBox">
|
||||||
<property name="focus-on-click">0</property>
|
|
||||||
<property name="tooltip-text" translatable="yes">Show Details</property>
|
|
||||||
<property name="halign">center</property>
|
|
||||||
<property name="valign">center</property>
|
|
||||||
<property name="icon-name">dialog-information-symbolic</property>
|
|
||||||
</object>
|
</object>
|
||||||
<packing>
|
<packing>
|
||||||
<property name="name">list</property>
|
<property name="name">general</property>
|
||||||
</packing>
|
</packing>
|
||||||
</child>
|
</child>
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkButton">
|
<object class="GtkBox">
|
||||||
<property name="focus-on-click">0</property>
|
|
||||||
<property name="tooltip-text" translatable="yes">Show all Resources</property>
|
|
||||||
<property name="halign">center</property>
|
|
||||||
<property name="valign">center</property>
|
|
||||||
<property name="icon-name">view-list-symbolic</property>
|
|
||||||
</object>
|
</object>
|
||||||
<packing>
|
<packing>
|
||||||
<property name="name">details</property>
|
<property name="name">visual</property>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkStack" id="resource_buttons">
|
||||||
|
<property name="halign">start</property>
|
||||||
|
<property name="valign">center</property>
|
||||||
|
<child>
|
||||||
|
<object class="GtkButton">
|
||||||
|
<property name="focus-on-click">0</property>
|
||||||
|
<property name="tooltip-text" translatable="yes">Show Details</property>
|
||||||
|
<property name="halign">center</property>
|
||||||
|
<property name="valign">center</property>
|
||||||
|
<property name="icon-name">dialog-information-symbolic</property>
|
||||||
|
</object>
|
||||||
|
<packing>
|
||||||
|
<property name="name">list</property>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkButton">
|
||||||
|
<property name="focus-on-click">0</property>
|
||||||
|
<property name="tooltip-text" translatable="yes">Show all Resources</property>
|
||||||
|
<property name="halign">center</property>
|
||||||
|
<property name="valign">center</property>
|
||||||
|
<property name="icon-name">view-list-symbolic</property>
|
||||||
|
</object>
|
||||||
|
<packing>
|
||||||
|
<property name="name">details</property>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
|
</object>
|
||||||
|
<packing>
|
||||||
|
<property name="name">resources</property>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkToggleButton" id="record_statistics_button">
|
||||||
|
<property name="focus-on-click">0</property>
|
||||||
|
<property name="tooltip-text" translatable="yes">Collect Statistics</property>
|
||||||
|
<property name="halign">start</property>
|
||||||
|
<property name="valign">center</property>
|
||||||
|
<property name="icon-name">media-record-symbolic</property>
|
||||||
|
</object>
|
||||||
|
<packing>
|
||||||
|
<property name="name">statistics</property>
|
||||||
</packing>
|
</packing>
|
||||||
</child>
|
</child>
|
||||||
</object>
|
</object>
|
||||||
<packing>
|
<packing>
|
||||||
<property name="name">resources</property>
|
<property name="name">global</property>
|
||||||
</packing>
|
</packing>
|
||||||
</child>
|
</child>
|
||||||
<child>
|
<child>
|
||||||
@ -125,20 +147,6 @@
|
|||||||
<property name="name">recorder</property>
|
<property name="name">recorder</property>
|
||||||
</packing>
|
</packing>
|
||||||
</child>
|
</child>
|
||||||
<child>
|
|
||||||
<object class="GtkBox">
|
|
||||||
</object>
|
|
||||||
<packing>
|
|
||||||
<property name="name">visual</property>
|
|
||||||
</packing>
|
|
||||||
</child>
|
|
||||||
<child>
|
|
||||||
<object class="GtkBox">
|
|
||||||
</object>
|
|
||||||
<packing>
|
|
||||||
<property name="name">general</property>
|
|
||||||
</packing>
|
|
||||||
</child>
|
|
||||||
</object>
|
</object>
|
||||||
</child>
|
</child>
|
||||||
<child type="title">
|
<child type="title">
|
||||||
@ -396,21 +404,55 @@
|
|||||||
</packing>
|
</packing>
|
||||||
</child>
|
</child>
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkInspectorStatistics">
|
<object class="GtkBox">
|
||||||
<property name="button">record_statistics_button</property>
|
<property name="orientation">horizontal</property>
|
||||||
|
<child>
|
||||||
|
<object class="GtkStackSidebar">
|
||||||
|
<property name="stack">global_stack</property>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkStack" id="global_stack">
|
||||||
|
<child>
|
||||||
|
<object class="GtkInspectorGeneral">
|
||||||
|
</object>
|
||||||
|
<packing>
|
||||||
|
<property name="name">general</property>
|
||||||
|
<property name="title" translatable="yes">General</property>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkInspectorVisual">
|
||||||
|
</object>
|
||||||
|
<packing>
|
||||||
|
<property name="name">visual</property>
|
||||||
|
<property name="title" translatable="yes">Visual</property>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkInspectorResourceList">
|
||||||
|
<property name="buttons">resource_buttons</property>
|
||||||
|
</object>
|
||||||
|
<packing>
|
||||||
|
<property name="name">resources</property>
|
||||||
|
<property name="title" translatable="yes">Resources</property>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkInspectorStatistics">
|
||||||
|
<property name="button">record_statistics_button</property>
|
||||||
|
</object>
|
||||||
|
<packing>
|
||||||
|
<property name="name">statistics</property>
|
||||||
|
<property name="title" translatable="yes">Statistics</property>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
</object>
|
</object>
|
||||||
<packing>
|
<packing>
|
||||||
<property name="name">statistics</property>
|
<property name="name">global</property>
|
||||||
<property name="title" translatable="yes">Statistics</property>
|
<property name="title" translatable="yes">Global</property>
|
||||||
</packing>
|
|
||||||
</child>
|
|
||||||
<child>
|
|
||||||
<object class="GtkInspectorResourceList">
|
|
||||||
<property name="buttons">resource_buttons</property>
|
|
||||||
</object>
|
|
||||||
<packing>
|
|
||||||
<property name="name">resources</property>
|
|
||||||
<property name="title" translatable="yes">Resources</property>
|
|
||||||
</packing>
|
</packing>
|
||||||
</child>
|
</child>
|
||||||
<child>
|
<child>
|
||||||
@ -429,22 +471,6 @@
|
|||||||
<property name="title" translatable="yes">Recorder</property>
|
<property name="title" translatable="yes">Recorder</property>
|
||||||
</packing>
|
</packing>
|
||||||
</child>
|
</child>
|
||||||
<child>
|
|
||||||
<object class="GtkInspectorVisual">
|
|
||||||
</object>
|
|
||||||
<packing>
|
|
||||||
<property name="name">visual</property>
|
|
||||||
<property name="title" translatable="yes">Visual</property>
|
|
||||||
</packing>
|
|
||||||
</child>
|
|
||||||
<child>
|
|
||||||
<object class="GtkInspectorGeneral">
|
|
||||||
</object>
|
|
||||||
<packing>
|
|
||||||
<property name="name">general</property>
|
|
||||||
<property name="title" translatable="yes">General</property>
|
|
||||||
</packing>
|
|
||||||
</child>
|
|
||||||
</object>
|
</object>
|
||||||
</child>
|
</child>
|
||||||
</template>
|
</template>
|
||||||
|
Loading…
Reference in New Issue
Block a user