Re: Copying Gtk::TreeRow
- From: "Paul Davis" <pjdavis engineering uiowa edu>
- To: gtkmm-list gnome org
- Subject: Re: Copying Gtk::TreeRow
- Date: Sat, 23 Sep 2006 05:52:33 -0500
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]