Add a vertical scrollbar to the layoutlauncher - also make mouse wheel scrolling work.

This commit is contained in:
Stephen Boddy 2013-09-26 00:10:12 +02:00
parent f067e5355b
commit dc2a9d428a
1 changed files with 21 additions and 13 deletions

View File

@ -20,23 +20,31 @@
<property name="label_yalign">0</property> <property name="label_yalign">0</property>
<property name="shadow_type">in</property> <property name="shadow_type">in</property>
<child> <child>
<object class="GtkTreeView" id="layoutlist"> <object class="GtkScrolledWindow" id="scrolledwindow1">
<property name="width_request">150</property>
<property name="height_request">200</property>
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">True</property> <property name="can_focus">True</property>
<property name="model">layoutstore</property> <property name="hscrollbar_policy">automatic</property>
<property name="headers_clickable">False</property> <property name="vscrollbar_policy">automatic</property>
<property name="search_column">0</property>
<signal name="row-activated" handler="on_row_activated" swapped="no"/>
<child> <child>
<object class="GtkTreeViewColumn" id="treeviewcolumn1"> <object class="GtkTreeView" id="layoutlist">
<property name="title" translatable="yes">Layout</property> <property name="width_request">150</property>
<property name="height_request">200</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="model">layoutstore</property>
<property name="headers_clickable">False</property>
<property name="search_column">0</property>
<signal name="row-activated" handler="on_row_activated" swapped="no"/>
<child> <child>
<object class="GtkCellRendererText" id="cellrenderertext1"/> <object class="GtkTreeViewColumn" id="treeviewcolumn1">
<attributes> <property name="title" translatable="yes">Layout</property>
<attribute name="text">0</attribute> <child>
</attributes> <object class="GtkCellRendererText" id="cellrenderertext1"/>
<attributes>
<attribute name="text">0</attribute>
</attributes>
</child>
</object>
</child> </child>
</object> </object>
</child> </child>