[Gtk-sharp-list] Sorting TreeView
Nuno Marques
nmmstuff at sapo.pt
Mon Jul 17 17:29:40 EDT 2006
Hello list,
I'm having touble sorting a treeview, my model has the following structure:
model = new TreeStore (typeof (my_object), typeof(bool), typeof (string),
typeof(string));
the 4th column, wich is declared string, is really a date so I do this:
LST_POSTS_DATE=3;
col = lstPosts.AppendColumn("Date", new Gtk.CellRendererText() , "text",
LST_POSTS_DATE);
col.SortColumnId = LST_POSTS_DATE;
model.SetSortFunc(LST_POSTS_DATE, cmpPostDate);
but my sorting function (cmpPostDate) never gets called, and the rows are
ordered alphabetically.
What am I doing wrong?
TIA,
nuno marques
More information about the Gtk-sharp-list
mailing list