GtkListStore and G_TYPE_FLOAT
- From: "Harinandan S" <harinandans gmail com>
- To: gtk-list <gtk-list gnome org>
- Subject: GtkListStore and G_TYPE_FLOAT
- Date: Sun, 18 Jan 2009 18:15:24 +0530
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?
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]