Re: Some issues calling atk methods



On 08/12/2010 01:56 PM, Piñeiro wrote:
> After thinking a little about it, I realize that this .get_name that
> is being called is atk_action_get_name [2], as this class implements
> AtkAction interface.

> Although I tried some (random) ways to call atk_object_get_name on
> this object, I was not able to do that.
> 
> Any idea or hint?

hm... try Atk.Object.prototype.get_name.call(atk_label) ?

That assumes AtkLabel isn't overriding AtkObjectClass->get_name... if it
is, I don't think there's any way in gjs to refer to AtkLabel's
implementation of the method.

Does this work usefully in other language bindings? I think this is just
considered bad class design, and the answer is "don't do that then"...

-- Dan


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