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,15 +67,20 @@
|
||||
</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 class="GtkStack" id="global_button_stack">
|
||||
<property name="visible-child-name" bind-source="global_stack" bind-property="visible-child-name"/>
|
||||
<child>
|
||||
<object class="GtkBox">
|
||||
</object>
|
||||
<packing>
|
||||
<property name="name">statistics</property>
|
||||
<property name="name">general</property>
|
||||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkBox">
|
||||
</object>
|
||||
<packing>
|
||||
<property name="name">visual</property>
|
||||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
@ -111,6 +116,23 @@
|
||||
<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>
|
||||
</child>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="name">global</property>
|
||||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkBox">
|
||||
</object>
|
||||
@ -125,20 +147,6 @@
|
||||
<property name="name">recorder</property>
|
||||
</packing>
|
||||
</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>
|
||||
</child>
|
||||
<child type="title">
|
||||
@ -396,12 +404,29 @@
|
||||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkInspectorStatistics">
|
||||
<property name="button">record_statistics_button</property>
|
||||
<object class="GtkBox">
|
||||
<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">statistics</property>
|
||||
<property name="title" translatable="yes">Statistics</property>
|
||||
<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>
|
||||
@ -413,6 +438,23 @@
|
||||
<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>
|
||||
<packing>
|
||||
<property name="name">global</property>
|
||||
<property name="title" translatable="yes">Global</property>
|
||||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkInspectorCssEditor">
|
||||
</object>
|
||||
@ -429,22 +471,6 @@
|
||||
<property name="title" translatable="yes">Recorder</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="GtkInspectorGeneral">
|
||||
</object>
|
||||
<packing>
|
||||
<property name="name">general</property>
|
||||
<property name="title" translatable="yes">General</property>
|
||||
</packing>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
</template>
|
||||
|
Loading…
Reference in New Issue
Block a user