Re: [g-a-devel]Implementing ATK on Custom Widgets



Hi Padraig,

On Thu, 2002-01-24 at 11:00, Padraig O'Briain wrote:
> What I have done is put the data you had in the ZvtAccessible structure into a 
> new ZvtAccessiblePriv structure and provide a function 
> zvt_accessible_get_private_data() which returns a pointer to the 
> ZvtAccessiblePriv structure for a ZvtAccessible structure
> 
> The code in the _get_type() which calculates the size of the instance data is 
> changed, compared to the code in htmlviewaccessible.c, to be the size of the 
> instance data for the parent class plus the size of the ZvtAccessiblePriv 
> structure.

	I havn't looked at the code; but this sounds just horribly evil, and
"not the done thing" - it is normal to use GObject data for this sort of
thing, instead of something like this - that is unless you need to
override virtual methods or something; even so I'd be inclined to
inherit with the same size instance/class and use the GObject data.

	Really.

		Michael.

-- 
 mmeeks gnu org  <><, Pseudo Engineer, itinerant idiot




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]