Re: Sorting Integer value treeview column

2007-05-05 Thread Yeti
On Sat, May 05, 2007 at 09:11:20PM +0800, Jason Brisbane wrote: > > Every time I used G_TYPE_INT in the gtk_list_store_new function the > value returned wasnt the INT as expected. The value shown was an 8 digit > number that didnt have any relation to the int as shown in the mysql > client. I b

Re: Sorting Integer value treeview column

2007-05-05 Thread Jason Brisbane
Thanks. Every time I used G_TYPE_INT in the gtk_list_store_new function the value returned wasnt the INT as expected. The value shown was an 8 digit number that didnt have any relation to the int as shown in the mysql client. I believe it was a pointer. So I tried using a double (G_TYPE_DOUBL

Re: Sorting Integer value treeview column

2007-05-05 Thread Yeti
On Sat, May 05, 2007 at 06:20:05PM +0800, Jason Brisbane wrote: > I have a treeview that is populated with an Integer value (from a mysql > database) that is populated into a G_TYPE_STRING. Why? Inappropriate data representation is the source of all your problems. > This displays > correctly b

Sorting Integer value treeview column

2007-05-05 Thread Jason Brisbane
Hello, I have a treeview that is populated with an Integer value (from a mysql database) that is populated into a G_TYPE_STRING. This displays correctly but the sort function using: gtk_tree_view_column_set_sort_column_id (col, x); gtk_tree_view_column_set_sort_indicator (col