Re: GtkTreeStore manipulation



On Tue, 16 Nov 2004 08:51:32 +0000, Martyn Russell <martyn russell bt com> > > 
[...]
Lets say I have a view like this
=================================
 * restauraunt
    * pizza
        * green peppers
        * cheese
            * milk
            * geneticly modified organisms
            * steroids
        * peperoni
    * burger
        * patti
        * bread
    * salad
        * lettuce
        * tomatos
=================================

And I want to remove "cheese" and make it a child item of "burger" instead
of "pizza", is that possible without completely repopulating the GtkTreeStore ?
(while ensuring ofcourse that "cheese" still has "geneticly modified organisms"
and "milk" and "steroids")

You should be able to get the GtkTreeIter for "patti" (under "burger")
and for "cheese", you can use gtk_tree_store_move_after() or
gtk_tree_store_move_before().

Is there a way to do that if there is no patti or bread ?

Cheers,
                                                      -Tristan



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