Re: Speedup insert into treestore



Hi Muppet!

On Sun, 9 Oct 2005 14:44:29 -0400, muppet said:

[...]
This is the basic idiom; i've written it for a list, but you can  
expand that to a tree without much difficulty.
[...]

OK, here is my implementation:

1: my $model = $view->get_model;
2: $view->set_model (undef);
3: my @cursort = $model->get_sort_column_id ();
4: $model->set_sort_column_id (-2, 'descending');
5: $model->clear;
...repopulate...
6: $model->set_sort_column_id (@cursort);
7: $view->set_model ($model);

line 3: produces this error:
Gtk-CRITICAL **: gtk_tree_sortable_get_sort_column_id: assertion
`GTK_IS_TREE_SORTABLE (sortable)' failed

line 4: using only one argument (-2) doesn't work here, I must provide a
second one, with this version it gives the same message as line 3.

line 5: this results in:
Gtk-CRITICAL **: gtk_tree_store_clear: assertion `GTK_IS_TREE_STORE
(tree_store)' failed

My Debian testing gtk/perl info:
ii  libgtk2-perl           1.081-1
ii  libgtk2.0-0            2.6.10-1
ii  perl                   5.8.7-3

Ciao
Florian


Attachment: pgpYrS5n0qxFa.pgp
Description: PGP signature



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