X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f X-Recipient: geda-user AT delorie DOT com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sbcglobal.net; s=s1024; t=1374728002; bh=F/kFzPdI4OqB17zrt4hFnEU3Fqq7V0Cnaw0XBz/DmA8=; h=X-Yahoo-Newman-Id:X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:X-Rocket-Received:Content-Type:Mime-Version:Subject:From:In-Reply-To:Date:Content-Transfer-Encoding:Message-Id:References:To:X-Mailer; b=Z2Ew4YxHFSKSDr1gFSIW4zeSKSNgKQ2P/ZOA+O6Dd1zh/kns1f4k2FhCQP0zDMbhXEus9i/AmEE5T8Mn5BGhJyvkt+iVTeQs5ux7+UvbqzvwZ4sNEROMUsjIzXl+Yo+lia21QFrJZqud8jYFf1HGybsEXqJXVDMgslmTmcKySIs= X-Yahoo-Newman-Id: 650440 DOT 65299 DOT bm AT smtp115 DOT sbc DOT mail DOT ne1 DOT yahoo DOT com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: LhH92GgVM1lXm4joLuoqSeX7ySfzc31B7g5zoh2uRs3rhw1 zevrYAWwouJiKH8T0PFAvvVXDm5s_6tE_YTaX1IDuWQPKQl2hCHhKboE0tlx UzJVOd2Bh_vfzLbZCQ2KFuRwq7kw7hDhoRRvd6bsCBKwA.yyzdR7l3NchOkE D6dNACb2p97EbF921Xrs6bC7q6ZjvFdryAj148jHj8SqXo2qdhLaEb_4MSuc OKgzypnu5X.mxu4YMTi_eXzrkaHGfiSB3qtUzUZnqS0hfQ_f3IYy2EllXn87 ZB95weqYRsY2oEf9GksJEoUuLn4FZXbjfo871dXTNiNnwv3shwAKl5hdj2eU MXKxmt1A4xbed7wb48CGIhOEihDJyLm6A3VNYpeckqF1htAEVxNX88DSLuoy SOZL85q.iwUvojOoSr8202PNol0lTfeDKJV1a1aEdm5veVVaxUwhbq.P0pDx NfFYLGcxkJ1Sj6b_agFsvUB4ArPeScSpofv3zeDz4lUikv7yGnC8ConneYK7 UALN1ZWLh8u76kEcdEYUgDNbyY5Q- X-Yahoo-SMTP: b8jVkbOswBAqZ4BhECp7nxPJUfTGEnEGv_G4qgQeZMeAbA-- X-Rocket-Received: from [192.168.1.66] (ehennes AT 69 DOT 109 DOT 30 DOT 233 with plain) by smtp115.sbc.mail.ne1.yahoo.com with SMTP; 24 Jul 2013 21:53:22 -0700 PDT Content-Type: text/plain; charset=iso-8859-1 Mime-Version: 1.0 (Mac OS X Mail 6.5 \(1508\)) Subject: Re: [geda-user] Non-modal Dialogs From: Edward Hennessy In-Reply-To: Date: Wed, 24 Jul 2013 21:53:21 -0700 Content-Transfer-Encoding: 7bit Message-Id: <3211545A-B491-4A26-BE05-05A60F551859@sbcglobal.net> References: <2174C2C2-6FAF-4544-A4C0-5FDBD564A6FB AT sbcglobal DOT net> <1374513797 DOT 3124 DOT 12 DOT camel AT AMD64X2 DOT fritz DOT box> To: geda-user AT delorie DOT com X-Mailer: Apple Mail (2.1508) Reply-To: geda-user AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: geda-user AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On Jul 24, 2013, at 12:02 PM, Luis de Arquer wrote: > Having a quick look at libgeda/src/s_weakref.c, there are a few > functions managing the notification, and helping to add weak > references to an object (weak references are stored in a GList at > st_object). It is the only notifying mechanism I have found in libgeda > so far. The weak ref struct looks like this: > > struct WeakRef > { > void (*notify_func)(void *, void *); > void *user_data; > }; > > so it is a simple notification mechanism, apparently only used for > object destruction, although it could potentially be used for other > events. Thank you for looking into it. > IMHO, gobjects may be a better long term choice. It has most of the > job done already, and includes reference counting. It is also > attribute friendly, but I don't know how much of a grief it could be > to embed gobjects in libgeda. I believe gobjects are a good choice too. If the implementation would make it easy for language bindings, that would be great for libgeda. So that library functionality could be used from Python, for example. The gobjects may offer a better solution here too. Some structs will move over to gobjects easily, and accessors could be implemented over time. I can also contribute my time to help implement this too. Cheers, Ed