← Back to team overview

touch-packages team mailing list archive

[Bug 703054] Re: Required a way to know when a object is destroyed

 

** Changed in: unity (Ubuntu)
       Status: New => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to unity in Ubuntu.
https://bugs.launchpad.net/bugs/703054

Title:
  Required a way to know when a object is destroyed

Status in Nux:
  Fix Released
Status in Unity:
  Fix Released
Status in “nux” package in Ubuntu:
  Fix Released
Status in “unity” package in Ubuntu:
  Fix Released

Bug description:
  The AtkObject provides the accessibility support for the graphical
  toolkit objects, working as a kind of a proxy. The AtkObject normally
  maintain a reference of this toolkit object, and can survive this
  toolkit object (ie: the atk-bridge can maintain a reference to the atk
  object, and meanwhile, the toolkit object being destroyed).

  nux::Object implements nux::Trackable, with methods related to the
  reference count, included a method (Dispose) to destroy an object. But
  id doesn't notify in any way that the object was destroyed.

  This notification is required in order to update the reference on the
  AtkObject (so avoid to use a destroyed object, that usually is not
  safe), and to also update the state of the object to ATK_STATE_DEFUNCT
  [1]

  I briefly talked with Jay Taoko about it. Ideally this signal should
  be emitted by Object or by Trackable, but sigc++ is started to be used
  on Area (and for Unity sake, LauncherIcon is not an Area), so the
  options are:

    * Move sigc++ to be used on Object or Trackable, and add the signal there
    * Add the signal on Area, and then ensure that any object on unity is at least a Area

  
  [1] http://library.gnome.org/devel/atk/stable/atk-AtkState.html#AtkStateType

To manage notifications about this bug go to:
https://bugs.launchpad.net/nux/+bug/703054/+subscriptions