> I found one bug, and that had to do with the color of the balance. I
> have not had a deposit yet, and so should always be in the red.
> however, there was always one black balance. for a while, it was at
> the beginning, and then it was at the end for the longest time. right
> now, i don't see it in there at all. *shrug*
If you find a way to reproduce this bug, please post it to the list.
> 2. the number cell. When you enter the number cell, I would like to
> be able to hit + or - to increment or decrement the values. I am
> taking a stab at adding code for that, but I am not sure how. I
> was looking at the date cell code for an example. How does the
> date cell work?
>
> In datecell.c, I found "/* handle accelerator keys */", which has
> the start of the stuff I am looking at. Oh! I see that t or T
> already map back to today. I guess that is good for my request
> above. This code is in the thingy (function, procedure?) called
> DateMV. I look for where DateMV is called, and I see in
> xaccInitDateCell() that there is a line which reads
> "cell->cell.modify_verify = DateMV;" I look to see what calls
> xaccInitDateCell, and find it in xaccMallocDateCell. I find that
> xaccMallocDateCell is defined in datecell.h. I see in datecell.h
> something which looks right.... "DateCell * xaccMallocDateCell
> (void);", but....
>
> You all know that I don't have a whole lot of C knowledge, and I
> am wondering if I should go and copy datecell.* to numcell.* and
> go from there.
That would probably be a good place to start. Keep in mind that that
Num cell doesn't *have* to contain a number, so you shouldn't force
the user to do that.
> (how do i set up the callbacks to the GUI?)
The callbacks are the modify_verify, etc. fields. All you have
to do is set them to your callbacks. You should be able to just
use what is in the datecell initialization with name changes.
Once it is ready to go, splitreg.? and SplitRegister.c will
need to be changed to handle the new cell type.
dave
--
Gnucash Developer's List
To unsubscribe send empty email to: [EMAIL PROTECTED]