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

Re: treeview -- go back to initial state



Hello.

If you need to retain your original order, the best thing is to leave
the original model alone, wrap it inside GtkTreeModelSort and sort
that layer model instead. See docs (there are 2 examples too):
http://library.gnome.org/devel/gtk/stable/GtkTreeModelSort.html


2008/12/26 YU WU <wuyu_2001 hotmail com>:
>
> dear all,
>
> i have one problem. i have built a treeview modal. it reads data from a file. if i click one column header, the treeview is sorted. now, i want to restore the initial state. how can i realize this? one thing at least is to make the sort indicator arrow not displayed. but the function "gtk_tree_view_column_get_sort_indicator" doesn't work in gtk+2.10.11(my case). what's more, no idea how to go back to the initial state.
>
> any idea?
>
> thank you.
>
> wu yu
>
> _________________________________________________________________
> Send e-mail faster without improving your typing skills.
> http://windowslive.com/online/hotmail?ocid=TXT_TAGLM_WL_hotmail_acq_speed_122008
> _______________________________________________
> gtk-app-devel-list mailing list
> gtk-app-devel-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
>



-- 
Tadej Borovšak
00386 (0)40 613 131
tadeboro gmail com
tadej borovsak gmail com


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