Create  Edit  FrontPage  Index  Search  Changes  History  RSS  Back  Login

tut-treeview-view Diff - Ruby-GNOME2 Project Website

  • Added parts are displayed like this.
  • Deleted parts are displayed like this.

= Creating a Tree View
{{link "tut-treeview-model-remove", nil, "tut-treeview", "tut-treeview-view-connect"}}

In order to display data in a tree view widget, we need to create one first, and we need to instruct it where to get the data to display from.

A new tree view is created with:

  view = Gtk::TreeView.new