GtkTreeView is a type of GTK widget that works for objects of type GtkTreeStore or GtkListStore.
To get something displayed with Glade:
- (optional) For scrolling with longer lists, create a GtkScrolledWindow.
- Add a GtkTreeView. For the “TreeView Model”, link it to your list/tree object.
- Right click the tree view, and press
Edit...
- Press the
+
. This allows you to define a new column to read from. Name the column as needed. - Right click the column you just made, and press
Add child Text
. This creates aGtkCellRendererText
. Link it with the list/tree you made.
From this step on, most UI changes are up to small tweaks.