GTK+ Forums

Discussion forum for GTK+ and Programming. Ask questions, troubleshoot problems, view and post example code, or express your opinions.
It is currently Mon Jul 28, 2014 8:32 pm

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: sorting
PostPosted: Thu Dec 14, 2006 7:33 am 
Offline
GTK+ Guru

Joined: Thu Nov 16, 2006 5:08 am
Posts: 259
Location: INDIA
hi every one
how can i sort data in clist?
i would like to sort in alpha. order
and one type of images will come to first(up).
can u please show me the way.
thank you


Top
 Profile  
 
 Post subject:
PostPosted: Thu Dec 14, 2006 6:56 pm 
Offline
Never Seen the Sunlight

Joined: Wed Sep 21, 2005 12:07 am
Posts: 563
Location: Portland, OR USA
I believe the GtkCList is depricated. You may want to instead use a GtkTreeView/GtkListStore. You can use GtkTreeSortable to customize the sorting behavior: http://developer.gnome.org/doc/API/2.0/gtk/GtkTreeSortable.html

A good treeview tutorial which includes sorting can be found here: http://scentric.net/tutorial/treeview-tutorial.html

_________________
Micah Carrick - Forum Administrator
http://www.micahcarrick.com


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: Yahoo [Bot] and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group