summaryrefslogtreecommitdiff
path: root/gtk/inspector/window.ui
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2014-11-08 00:06:54 -0500
committerMatthias Clasen <mclasen@redhat.com>2014-11-08 00:09:30 -0500
commit713d3834f6617bce5916ecaf07962be678d52805 (patch)
treec88b6cbfa1c8827f736f3404cb0c637cf0067127 /gtk/inspector/window.ui
parente2949e7bf76ad85d9ccbef3d4c82e0a4641ac02b (diff)
downloadgtk+-713d3834f6617bce5916ecaf07962be678d52805.tar.gz
inspector: Reserve space for buttons
Make the button area in the top left a stack that is parallel to the main page stack. This avoids size changes as we switch between pages.
Diffstat (limited to 'gtk/inspector/window.ui')
-rw-r--r--gtk/inspector/window.ui99
1 files changed, 70 insertions, 29 deletions
diff --git a/gtk/inspector/window.ui b/gtk/inspector/window.ui
index 349d21070c..9752614413 100644
--- a/gtk/inspector/window.ui
+++ b/gtk/inspector/window.ui
@@ -9,34 +9,40 @@
<property name="visible">True</property>
<property name="show-close-button">True</property>
<child>
- <object class="GtkButton" id="select_object">
- <property name="visible">True</property>
- <property name="tooltip-text" translatable="yes">Select an Object</property>
- <property name="halign">center</property>
- <property name="valign">center</property>
- <signal name="clicked" handler="gtk_inspector_on_inspect"/>
- <style>
- <class name="image-button"/>
- </style>
- <child>
- <object class="GtkImage">
- <property name="visible">True</property>
- <property name="icon-name">find-location-symbolic</property>
- <property name="icon-size">1</property>
- </object>
- </child>
- </object>
- <packing>
- <property name="pack-type">start</property>
- </packing>
- </child>
- <child>
- <object class="GtkStack" id="object_buttons">
+ <object class="GtkStack" id="button_stack">
<property name="visible">True</property>
+ <property name="visible-child-name" bind-source="top_stack" bind-property="visible-child-name"/>
<child>
- <object class="GtkButton" id="object_details_button">
+ <object class="GtkBox">
<property name="visible">True</property>
- <property name="tooltip-text" translatable="yes">Show Details</property>
+ <property name="orientation">horizontal</property>
+ <property name="spacing">6</property>
+ <child>
+ <object class="GtkButton" id="select_object">
+ <property name="visible">True</property>
+ <property name="tooltip-text" translatable="yes">Select an Object</property>
+ <property name="halign">center</property>
+ <property name="valign">center</property>
+ <signal name="clicked" handler="gtk_inspector_on_inspect"/>
+ <style>
+ <class name="image-button"/>
+ </style>
+ <child>
+ <object class="GtkImage">
+ <property name="visible">True</property>
+ <property name="icon-name">find-location-symbolic</property>
+ <property name="icon-size">1</property>
+ </object>
+ </child>
+ </object>
+ </child>
+ <child>
+ <object class="GtkStack" id="object_buttons">
+ <property name="visible">True</property>
+ <child>
+ <object class="GtkButton" id="object_details_button">
+ <property name="visible">True</property>
+ <property name="tooltip-text" translatable="yes">Show Details</property>
<property name="halign">center</property>
<property name="valign">center</property>
<signal name="clicked" handler="open_object_details"/>
@@ -78,14 +84,17 @@
</packing>
</child>
</object>
+ </child>
+ </object>
<packing>
- <property name="pack-type">start</property>
+ <property name="name">objects</property>
</packing>
</child>
<child>
<object class="GtkToggleButton" id="record_statistics_button">
+ <property name="visible">True</property>
<property name="tooltip-text" translatable="yes">Collect Statistics</property>
- <property name="halign">center</property>
+ <property name="halign">start</property>
<property name="valign">center</property>
<style>
<class name="image-button"/>
@@ -99,11 +108,14 @@
</child>
</object>
<packing>
- <property name="pack-type">start</property>
+ <property name="name">statistics</property>
</packing>
</child>
<child>
<object class="GtkStack" id="resource_buttons">
+ <property name="visible">True</property>
+ <property name="halign">start</property>
+ <property name="valign">center</property>
<child>
<object class="GtkButton">
<property name="visible">True</property>
@@ -148,9 +160,38 @@
</child>
</object>
<packing>
- <property name="pack-type">start</property>
+ <property name="name">resources</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkBox">
+ <property name="visible">True</property>
+ </object>
+ <packing>
+ <property name="name">css</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkBox">
+ <property name="visible">True</property>
+ </object>
+ <packing>
+ <property name="name">visual</property>
</packing>
</child>
+ <child>
+ <object class="GtkBox">
+ <property name="visible">True</property>
+ </object>
+ <packing>
+ <property name="name">general</property>
+ </packing>
+ </child>
+ </object>
+ <packing>
+ <property name="pack-type">start</property>
+ </packing>
+ </child>
<child type="title">
<object class="GtkStackSwitcher">
<property name="visible">True</property>