Message-ID: <42F7687A.2060708 at ath.cena.fr> Date: Mon, 08 Aug 2005 16:13:14 +0200 From: Yann LE FABLEC MIME-Version: 1.0 To: Olivier Andrieu Cc: Yann LE FABLEC , LablGTK Mailing List Subject: Re: How to temporarily disable GTree sorting ? References: <42F74918.4090503 at ath.cena.fr> <17143.26260.182393.468416 at karryall.dnsalias.org> In-Reply-To: <17143.26260.182393.468416 at karryall.dnsalias.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Thanks Olivier, that does the trick, -2 is the value to be used to disable sorting while inserting many rows. As you said, I guess it would be good to put the two values in GTree module. Thanks again, Yann. > Try using #set_sort_column_id (on the list store) with a column id of -2. > > There are two special values of column ids : > GTK_TREE_SORTABLE_DEFAULT_SORT_COLUMN_ID = -1, > GTK_TREE_SORTABLE_UNSORTED_SORT_COLUMN_ID = -2 > These should probably appear somewhere in GTree, I'll add them. >