Re: GtkTreeModelFilter and sort



В Птн, 18/08/2006 в 23:09 +0400, Andrey Dubravin пишет:
> Hello all!
> 
> Simple problem:)
> 
> How to sort GtkTreeModelFilter? I mean sort in GtkTreeView not working
> when i click to header.
> 
> GtkTreeModelFilter wraps GtkListStore!
> 
> Thanks!


Something like this should work:

model = gtk_list_store_new (1, G_TYPE_STRING);
model_filter = gtk_tree_model_filter_new (model, NULL);
model_sort = gtk_tree_model_sort_new_with_model (model_filter)

tree_view = gtk_tree_view_new_with_model (model_sort);

Attachment: signature.asc
Description: =?koi8-r?Q?=FC=D4=C1?= =?koi8-r?Q?_=DE=C1=D3=D4=D8?= =?koi8-r?Q?_=D3=CF=CF=C2=DD=C5=CE=C9=D1?= =?koi8-r?Q?_=D0=CF=C4=D0=C9=D3=C1=CE=C1?= =?koi8-r?Q?_=C3=C9=C6=D2=CF=D7=CF=CA?= =?koi8-r?Q?_=D0=CF=C4=D0=C9=D3=D8=C0?=



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