| View previous topic :: View next topic |
| Author |
Message |
ssiwek
Joined: 15 May 2006 Posts: 20
|
Posted: Thu May 18, 2006 9:34 am Post subject: GtkTreeViewColumn sort numeric |
|
|
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
|
Posted: Thu May 18, 2006 10:55 am Post subject: |
|
|
| Sounds like the type for that column is String... |
|
| Back to top |
|
 |
Osiris
Joined: 17 Dec 2005 Posts: 65
|
Posted: Thu May 18, 2006 11:31 am Post subject: |
|
|
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
|
Posted: Thu May 18, 2006 2:02 pm Post subject: |
|
|
| 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
My stupidness...
thanks a lot
Sven |
|
| Back to top |
|
 |
|