Re: How to use GtkTreeSortable.



On 22 Oct 2002 22:27:22 +0100
Martyn Russell <ginxd btopenworld com> wrote:

I have a better idea.
What you do is have 2 columns.  Use the "visible" feature to make a
column in bytes and make the bytes (which is a GUINT) invisible.  Create
a second column with the string value and make that visible.  When
creating the second column sort by the first column.

What was I thinking...? you do not need the "visible" feature, you
simply dont add a column for the GUINT just the STRING and then sort the
STRING column by the GUINT column.  You just have to remember that when
you update the model, you have to update TWO columns.


Regards,

Martyn

Thank you, I will do some experiments with both
of this methods.

/Johan



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