Re: Sorting GtkListStore date column
- From: Axel Simon <A Simon kent ac uk>
- To: Guy Rouillier <guyr-ml1 burntmail com>
- Cc: GTK App Devel <gtk-app-devel-list gnome org>
- Subject: Re: Sorting GtkListStore date column
- Date: Mon, 13 Mar 2006 09:27:14 +0000
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.
Axel.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]