Re: Copying Gtk::TreeRow



For reference, this is the method to copy from one iterator to another. Simple once I found the get_value_impl that Murray pointed out.

void
CustomTreeStore::copy_iter( Gtk::TreeModel::iterator& from, Gtk::TreeModel::iterator& to )
{
    for( int i = 0 ; i < get_n_columns() ; i++ )
    {
        Glib::ValueBase val ;

        get_value_impl( from, i, val ) ;
        set_value_impl( to, i, val ) ;
    }
}

Paul



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