gnope php gtk gui gnope.org  

GtkTreeViewColumn sort numeric

 
Post new topic   Reply to topic    gnope.org Forum Index -> PHP GTK2 Beginners
View previous topic :: View next topic  
Author Message
ssiwek



Joined: 15 May 2006
Posts: 20

PostPosted: Thu May 18, 2006 9:34 am    Post subject: GtkTreeViewColumn sort numeric Reply with quote

Hi!
Itīs me again.....

I want to sort a GtkTreeViewColumn which holds numbers.

Right now it sorts 1 10 100 2 20 200 ..... well thatīs not what I want.

I want that sorted numeric 1 2 10 20 100 200 ....

What do I have to do, to achieve that?

Have a nice day
Sven
Back to top
Mikey



Joined: 02 May 2006
Posts: 10

PostPosted: Thu May 18, 2006 10:55 am    Post subject: Reply with quote

Sounds like the type for that column is String...
Back to top
Osiris



Joined: 17 Dec 2005
Posts: 65

PostPosted: Thu May 18, 2006 11:31 am    Post subject: Reply with quote

I think, you've used
new GTKListstore( Gtk::TYPE_STRING ....
instead of
new GTKListstore( Gtk::TYPE_LONG or DOUBLE ....
Back to top
ssiwek



Joined: 15 May 2006
Posts: 20

PostPosted: Thu May 18, 2006 2:02 pm    Post subject: Reply with quote

Osiris wrote:
I think, you've used
new GTKListstore( Gtk::TYPE_STRING ....
instead of
new GTKListstore( Gtk::TYPE_LONG or DOUBLE ....


Yes you are right Smile

My stupidness...

thanks a lot
Sven
Back to top
Display posts from previous:   
Post new topic   Reply to topic    gnope.org Forum Index -> PHP GTK2 Beginners All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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 vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Templates enhanced by DigiWiki. Hosting by Tradebit.