* Jens Luedicke <jens irs-net com>:
I added a sort function to one of the columns in a ListStore and need to swap rows but gtk complains that I can't to it. (sorted model)
It has any rights to complain. :-) GtkListStore implements the GtkTreeSortable interface. That means you'll just have to create a compare function that will be used to sort the model on the fly. You might even create a sorting function for each column of your module. Attached there's an example of custom sorting. Regards, Emmanuele. -- Emmanuele Bassi (Zefram) [ http://digilander.libero.it/ebassi/blog ] GnuPG Key fingerprint = 4DD0 C90D 4070 F071 5738 08BD 8ECC DB8F A432 0FF4
Attachment:
custom_model_sorting.pl
Description: Custom model sorting