View Single Post
Ken-Young's Avatar
Posts: 387 | Thanked: 1,700 times | Joined on Feb 2010 @ Cambridge, MA, USA
#6
Originally Posted by djdas View Post
Why don't you use Hildon widgets instead of plain GTK widgets? I think the former should integrate better with the whole system. I'll download the source code and in my spare time (very low ATM) I could try to help you contributing some sources (I don't have the build system so I'll try to send some "blind" patches )
I use Hildon widgets for everything except the height and target weight. The problem with Hildon widgets for entering a floating point value is that you must anticipate the full range of permissible values, and the granularity with which one might want to enter the data, and then populate an enormous scrolling widget with every possible value. For the daily weight, I can use the last weight as a guess. But I have no initial guess for the height and target weight.


Originally Posted by djdas View Post
Well, I think I have found the problem: enetering only ONE weight data (just one row in the data file) the program doesn't start correctly, I entered 2 or more items and everything worked well.
I noticed there could be two problems:
1) it seems if you don't enter any comment some char pointer goes in buffer overflow because all the other comments in the graph become crap strings (and the data file will be corrupted in strings);
I don't see that behavior - I only have a few comments in my table, and it works properly. Could you email me an example of a table that exibits the bad behavior?

Originally Posted by djdas View Post
2) there is a strange behaviour with weight amounts, I entered 4 values in 4 different dates but when I reopen the program these values are rounded or something else (i.e I entered 69,5 Kg on February 9th but when I reopen the program, the data chart and the log show only 69 Kg, the same for other values in other days so the log and the chart show uncorrect values);

Don't mind about my current data, I started my weight control program last month and I have only 4 samples
Thank you in advance, bye!
Thanks for the detailed error report. I don't use metric units myself, so there may be bugs I have not tracked down. I'll try to find the rounding problem you mentioned. I found another couple of very minor bugs, so I'll be uploading a new version in a few days.

Thanks again for giving the app a try. I hope I can whip it into good enough shape for it to be useful to at least one other person.