GtkListStore and G_TYPE_FLOAT

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

 



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
_______________________________________________
gtk-list mailing list
gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list

[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux