← Back to team overview

touch-packages team mailing list archive

[Bug 911667] Re: Unable to use ModelTag from Vala with owned variables

 

** 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/911667

Title:
  Unable to use ModelTag from Vala with owned variables

Status in dee:
  Fix Released
Status in Unity:
  Fix Released
Status in dee package in Ubuntu:
  Fix Released
Status in unity package in Ubuntu:
  Fix Released

Bug description:
  Methods using Dee.ModelTag are bound using void*, which makes mem-
  management very difficult (in vala terms). The class should be defined
  as a generic one.

  As an example currently it's not really straightforward how to put an
  owned string to a tag, one would probably use:

  unowned Dee.ModelTag tag = model.register_tag (GLib.free);
  model.set_tag (iter, tag, "foo".dup ());
  debug ("%s", (string) model.get_tag (iter, tag));

  But the variable with "foo" is freed right after the set_tag call.

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