As far as GTK is concern, the tree created is like this:
The code for this tree is obtained from here.
What I want to achieve is this:
This is from Eclipse. Most programs have the lines for trees as well. Those lines are necessary for me as my program will have a large tree.