summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2014-10-27 17:13:36 -0400
committerMatthias Clasen <mclasen@redhat.com>2014-10-27 17:15:31 -0400
commita680631345f32a39fd518dd554ff3f7eac404dd8 (patch)
treeff6bc6a71bd3fd7584f6a2e67e6c0c9bd72f219c
parentf7b1ba09430f07a02c5c29b0eba59516bf92aa9a (diff)
downloadgtk+-a680631345f32a39fd518dd554ff3f7eac404dd8.tar.gz
gtk3-demo: Add a frame to the sidebar
With overlay scrollbars, there's no visible separation between the sidebar and the content otherwise.
-rw-r--r--demos/gtk-demo/main.ui53
1 files changed, 29 insertions, 24 deletions
diff --git a/demos/gtk-demo/main.ui b/demos/gtk-demo/main.ui
index 6d8f6c016c..900dc44926 100644
--- a/demos/gtk-demo/main.ui
+++ b/demos/gtk-demo/main.ui
@@ -70,36 +70,41 @@
<property name="can_focus">False</property>
<property name="border_width">0</property>
<child>
- <object class="GtkScrolledWindow" id="scrolledwindow">
- <property name="width_request">120</property>
+ <object class="GtkFrame">
<property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="hscrollbar_policy">never</property>
- <property name="shadow_type">none</property>
- <property name="min_content_width">150</property>
- <style>
- <class name="sidebar"/>
- </style>
<child>
- <object class="GtkTreeView" id="treeview">
+ <object class="GtkScrolledWindow" id="scrolledwindow">
+ <property name="width_request">120</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
- <property name="model">treestore</property>
- <property name="headers_visible">False</property>
- <child internal-child="selection">
- <object class="GtkTreeSelection" id="treeview-selection">
- <property name="mode">browse</property>
- </object>
- </child>
+ <property name="hscrollbar_policy">never</property>
+ <property name="shadow_type">none</property>
+ <property name="min_content_width">150</property>
+ <style>
+ <class name="sidebar"/>
+ </style>
<child>
- <object class="GtkTreeViewColumn" id="treeviewcolumn1">
- <property name="title" translatable="yes">column</property>
+ <object class="GtkTreeView" id="treeview">
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="model">treestore</property>
+ <property name="headers_visible">False</property>
+ <child internal-child="selection">
+ <object class="GtkTreeSelection" id="treeview-selection">
+ <property name="mode">browse</property>
+ </object>
+ </child>
<child>
- <object class="GtkCellRendererText" id="cellrenderertext1"/>
- <attributes>
- <attribute name="style">4</attribute>
- <attribute name="text">1</attribute>
- </attributes>
+ <object class="GtkTreeViewColumn" id="treeviewcolumn1">
+ <property name="title" translatable="yes">column</property>
+ <child>
+ <object class="GtkCellRendererText" id="cellrenderertext1"/>
+ <attributes>
+ <attribute name="style">4</attribute>
+ <attribute name="text">1</attribute>
+ </attributes>
+ </child>
+ </object>
</child>
</object>
</child>