Hi Emmanuele! On Sun, 09 Oct 2005 19:39:11 +0200, Emmanuele Bassi said: [...]
Strategy 1) is always the best one when updating the contents of a TreeModel implementation; the TreeView is constantly listening for changes in the model - so disconnecting it yields the better results.
OK, how do I do this? I tried to do $tree_view->set_model(undef) but that resulted in unusable TreeIters to insert the data into the TreeStore. I read that in C one can add a reference to the object so that the model doesn't get destroyed, but how is it done in Perl?
Sadly, I don't know how to do either of those options (set_sort_column_id does not accept undef).Disabling sorting is done by passing -1 as the column id.
Hmm, -1 or -2, anyone with another number? ;-) SCNR Ciao Florian
Attachment:
pgp59fL_OAVSn.pgp
Description: PGP signature