How can I make GtkTreeView work with vertical scrollbar in Glade3?

I use glade 3 to create a TreeView and a successfully added row as an algorithm, but I had a little problem because the treeview will add a new row, so my "GUI" will go down to the bottom longer, how can I add a scroll bar for this TreeView ? to make my "GUI" no longer?

Note. I added a “new setting” and connected it to the TreeView and ScrollBar verticals, but still haven’t done the job.

any idea?

+5
source share
1 answer

TreeView GtkScrolledWindow. :.

<child>
  <object class="GtkScrolledWindow" id="scrolledwindow1">
    <property name="visible">True</property>
    <property name="hscrollbar_policy">automatic</property>
    <property name="vscrollbar_policy">automatic</property>
    <child>
      <object class="GtkTreeView" id="items_view">
        <property name="visible">True</property>
        <property name="can_focus">True</property>
        <property name="model">list_items</property>
      </object>
    </child>
  </object>
</child>
+9

All Articles