Re: tree view sortable?



On Fri, 14 Jun 2002 16:48:36 +0200 "Olivier Sessink"
<olivier lx student wau nl> wrote:

Hi all,

Is it possible to make the tree view widget sort on one of the columns
per level?

the only things I found in the API reference:
"Use gtk_tree_view_column_set_sort_column_id() if you want automatic
sorting support."

So I did this:

        column = gtk_tree_view_column_new_with_attributes ("title2",
                renderer,"text", FILENAME_COLUMN,NULL);
        gtk_tree_view_column_set_sort_indicator(column,TRUE);
        gtk_tree_view_column_set_sort_column_id(column,FILENAME_COLUMN);
        gtk_tree_view_append_column (GTK_TREE_VIEW (tree), column);

now the header for this column is clickable, but it is still not
auto-sorted. Can anybody give me a hint to get the sortding to work?

thanks,
        Olivier

Attachment: pgpjw74dhdEpD.pgp
Description: PGP signature



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