summaryrefslogtreecommitdiff
path: root/demos
diff options
context:
space:
mode:
authorJonathan Blandford <jrb@redhat.com>2001-12-04 23:42:27 +0000
committerJonathan Blandford <jrb@src.gnome.org>2001-12-04 23:42:27 +0000
commit57506c438b37586a189330e7023682f56ed58c7f (patch)
tree9912c0615419b2608d23257bf1b3059b2d26505b /demos
parentf6f4353615c7d3d9afe256c59d898d04d759cc9b (diff)
downloadgdk-pixbuf-57506c438b37586a189330e7023682f56ed58c7f.tar.gz
Minor fix.
Tue Dec 4 18:38:35 2001 Jonathan Blandford <jrb@redhat.com> * demos/gtk-demo/main.c: (create_tree): Minor fix. * docs/tree-column-sizing.txt: Update * gtk/gtkrbtree.[ch]: Massive work to support validation. * gtk/gtktreemodel.c: Doc fixes. * gtk/gtktreeview.c: Incremental reflow added. * gtk/gtktreeviewcolumn.c: ditto * gtk/gtktreeviewcolumn.h: ditto itty bitty ChangeLog entry. Big 'ol changes.
Diffstat (limited to 'demos')
-rw-r--r--demos/gtk-demo/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/demos/gtk-demo/main.c b/demos/gtk-demo/main.c
index d126fdae2..7fe3b4542 100644
--- a/demos/gtk-demo/main.c
+++ b/demos/gtk-demo/main.c
@@ -673,7 +673,8 @@ create_tree (void)
Demo *d = testgtk_demos;
model = gtk_tree_store_new (NUM_COLUMNS, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_POINTER, G_TYPE_BOOLEAN);
- tree_view = gtk_tree_view_new_with_model (GTK_TREE_MODEL (model));
+ tree_view = gtk_tree_view_new ();
+ gtk_tree_view_set_model (GTK_TREE_VIEW (tree_view), GTK_TREE_MODEL (model));
selection = gtk_tree_view_get_selection (GTK_TREE_VIEW (tree_view));
gtk_tree_selection_set_mode (GTK_TREE_SELECTION (selection),
@@ -739,7 +740,6 @@ create_tree (void)
g_signal_connect (tree_view, "row_activated", G_CALLBACK (row_activated_cb), model);
gtk_tree_view_expand_all (GTK_TREE_VIEW (tree_view));
-
return tree_view;
}