Please don't reinvent the wheel !!!
Look another gtk sources to make the code !
Here's a patch I've applied to two different programs (I'm sure I'll have to apply it more times)
Eduardo Pérez Ureta
--
ISO 8601 NOW! http://www.cl.cam.ac.uk/~mgk25/iso-time.html
--- bad/dfilter_expr_dlg.c Sat Mar 3 14:34:08 2001
+++ dfilter_expr_dlg.c Sun Mar 25 18:57:21 2001
@@ -979,8 +979,7 @@
gtk_ctree_set_line_style(GTK_CTREE(tree), GTK_CTREE_LINES_NONE);
gtk_signal_connect(GTK_OBJECT(tree), "tree-select-row",
GTK_SIGNAL_FUNC(field_select_row_cb), tree);
- gtk_scrolled_window_add_with_viewport(GTK_SCROLLED_WINDOW(tree_scrolled_win),
- tree);
+ gtk_container_add(GTK_CONTAINER(tree_scrolled_win), tree);
/*
* GTK's annoying CTree widget will deliver a selection event