Re: Sorting GtkListStore date column



Axel Simon wrote:
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 single column by storing just the time_t, and using a custom renderer to transform the time_t value into a displayable string? Is sorting done on the rendered text or on the underlying data?

Yes, you can do this with  gtk_cell_layout_set_cell_data_func.

Thanks, I'll give that a try also.

--
Guy Rouillier



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