On Sunday 20 February 2005 11:35 pm, Chris Shoemaker wrote: > On Sun, Feb 20, 2005 at 10:57:10PM +0000, Neil Williams wrote:
> And "the given kvp_frame"? What kvp_frame? The only > argument is a KvpValue You can't have a value outside a frame - the GHashTable at the top of the KVP tree for this entity. You always pass a returned KvpValue to kvp_frame_set_value or similar, so there's always an implicit frame. > , and if its sub-type _happens_ to be KvpFrame, > then this function returns NULL. Does it? If the value->type is not KVP_TYPE_GLIST, it returns NULL but the *contents* of the GList are not inspected at this point. A list containing KvpValues of KvpValueType == KVP_TYPE_FRAME is treated no differently to a GList of KvpValues of any other KvpValueType. Look at the description for kvp_value_new_glist http://code.neil.williamsleesmill.me.uk/gnome2/group__KVP.html#ga63 It's a list of values, which can include more frames. -- Neil Williams ============= http://www.dcglug.org.uk/ http://www.nosoftwarepatents.com/ http://sourceforge.net/projects/isbnsearch/ http://www.neil.williamsleesmill.me.uk/ http://www.biglumber.com/x/web?qs=0x8801094A28BCB3E3
pgpuuhdHdat4H.pgp
Description: PGP signature
_______________________________________________ gnucash-devel mailing list [email protected] https://lists.gnucash.org/mailman/listinfo/gnucash-devel
