On Fri, Apr 30, 2004 at 13:51:10 +0200, Bruno Boettcher wrote:
now the problem: i need to clear the model when a new request comes in and then fill it up with the new data... (BTW if someone could point me out to the docu for that stuff... ListStore deosn't seem to exist in C, nor is there some perldoc docu) tryed the following: my @newdata = split(/,/,$value); my $model = $widget->{"data_"}; my $iter = $model->get_iter_first(); while($iter && $iter != 1) { $model->remove($iter); $iter = $model->iter_next($iter); }# while($iter = $model->remove($iter)) foreach my $item (@newdata) { $iter = $model->append; $model->set($iter,0,$item); }# foreach my $item (@{$field->{"default"}})
Looked at the Gtk2::SimpleList? ------------------------------------------------------------------------------- Jan 'Bulb' Hudec <bulb ucw cz>
Attachment:
signature.asc
Description: Digital signature