Re: Sorting GtkListStore date column

2006-03-13 Thread Axel Simon
On Sun, 2006-03-12 at 21:39 -0500, Guy Rouillier wrote: I'll use the approach of storing the time_t corresponding to each displayed date in a hidden column, and use that hidden column as the sort column for the date column. Out of curiosity, would it also be possible to do this in a

Sorting GtkListStore date column

2006-03-12 Thread Guy Rouillier
I'm fairly new to GTK programming, and I'm helping out on an open source GTK-based project (gcvs, part of the cvsgui project.) We have a GtkListStore with a column containing date. The column is specified as G_TYPE_STRING. When sorted, it does an alphanumeric sort, so in English it puts all

Re: Sorting GtkListStore date column

2006-03-12 Thread Chris Vine
On Sunday 12 March 2006 19:30, Chris Vine wrote: On Sunday 12 March 2006 09:11, Guy Rouillier wrote: I'm fairly new to GTK programming, and I'm helping out on an open source GTK-based project (gcvs, part of the cvsgui project.) We have a GtkListStore with a column containing date. The

Re: Sorting GtkListStore date column

2006-03-12 Thread Guy Rouillier
Chris Vine wrote: Obviously, I want to sort this in date sequence. How do I accomplish this? I searched the archives before posting and couldn't find anything applicable. Thanks. You can sort on a hidden column in the list store (that is, one not displayed in a tree view) which has, say,