GtkTreeModelSort
- From: Stuart Jansen <smj8 email byu edu>
- To: gtk-app-devel-list gnome org
- Subject: GtkTreeModelSort
- Date: Sun, 20 Jan 2002 11:45:54 -0700
I've been fairly impressed with the new tree CMV design so far. However,
I'm having a hard time using the GtkTreeModelSort and modifying the
data.
Let me see if I've got this right:
Because there is no way to access the data once it is put into a
GtkListStore or GtkTreeStore, a seperate copy must be maintained. Like
in gtk-demo were editable values are stored ina a GArray. (Can I just
say that not being able to read the stored values is a _real_ pain?)
To avoid changing the order of the rows in the GtkListStore, I can't
just sort the GtkTreeModel (actually GtkListStore) but must wrap it in a
GtkTreeModelSort. (With the advantage that I can define sort functions
for individual columns.)
I'm doing that and can edit/add rows without a problem. I'm having real
trouble removing rows, however. Could someone give at least a generally
description or better (bless your heart) example code describing the
correct way to use a GtkTreeModelSort?
--
Stuart Jansen /"\ ASCII Ribbon Campaign
sjansen byu edu \ / No HTML/RTF in email
AIM: StuartMJansen X No Word docs in email
/ \ Respect for open standards
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]