rows_reordered signal trouble?



I don't seem to be able to get a rows_reordered signal from a 
Gtk2::ListStore.

I have a Gtk2::SimpleList and I would like to recalculate values
for a particular column if the user reorders the rows of the list.
I do something like:

   # $slist is a Gtk2::SimpleList
   my $model = $slist->get_model();    # $model is a Gtk2::ListStore
   $model->signal_connect(rows_reordered => sub { print "Woohoo\n"; });

I never seem to get a rows_reordered signal when rows are reordered 
in the list.  I get row_changed and row_inserted, but not
rows_reordered. Gtk2::ListStore implements Gtk2::TreeModel, so I 
think I should get this signal.  Does anyone know what's going on?

Please be gentle, I'm kind of an idiot.

jeff





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