Gtk+-1.3.10 GtkTreeModel/GtkTreeView insertion



I am trying to figure out on how to insert information into a model.  My
client application receives CORBA events, strings, which should be
inserted into the gtk model at a certain location relevant to the event
string data.
I don't know how to traverse the model and search for the location where
I can insert the corba event.  I went through all the test code
provided with Gtk+-1.3.10 but couldn't find any info on how to do that.
Some of the examples insert at specific selected nodes but none do a
search and insert procedure.
Does anybody know how to do that?


eg.

I have the following model.

Item        Cat
----       ---
Arm            1
Face           1
Cat             2
Dog            2
Chair          3
Door           3

and now I get an event that wants to insert Bird. I should be able to go
through the model and insert by string comparison, string search, the
Bird string:

Item        Cat
----       ---
Arm            1
Face           1
Cat             2
Dog            2
Bird            2
Chair          3
Door           3




--
Thomas Amsler
amsler cs ucdavis edu
http://tpa.dyndns.org/thomas

"Imagination is more important than knowledge."
        --Albert Einstein






[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]