Re: GObject in the Engine example

2007-01-11 Thread Daniel Espinosa
2007/1/11, Chris Shoemaker <[EMAIL PROTECTED]>: > Just some comments from a brief look... > > 1) What's with GdaBinary? > Its a mistake, I had copy some code to declare a GdaBinary as a G_TYPE_BOXED derived type, and I forgot to update this reference must be GncNumeric. > 2) Why don't the Accoun

Re: GObject in the Engine example

2007-01-11 Thread Chris Shoemaker
Just some comments from a brief look... 1) What's with GdaBinary? 2) Why don't the Account and Split inherit from the GncObject? Consider the ->inst struct members. These should be the parent GObject. 3) With inheritance, can't you avoid the mulitple foo_set_qof_book implementations?

GObject in the Engine example

2007-01-10 Thread Daniel Espinosa
Attached you'll find a C code example in how I can "hide" QOF from the GObject implementation in the GC's engine. Please consider the following: 1) This is just an example and not all the methods supported for the objects had been implemented 2) This example just take three objects: the top leve