GtkListStore and G_TYPE_FLOAT



Hi All,

When I create a list store to store float with G_TYPE_FLOAT, and view it in GtkTreeView, the number of significant digits after decimal points is around 6. My data have a max of 2 digits after decimal point and hence it looks bad in GtkTreeView. Is there any way to set the number of digits after decimal point or I've to use G_TYPE_STRING and convert float to string and vice versa?

Regards,
Harinandan S


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