Re: documentation, deprecated interfaces
- From: Michael Meeks <michael ximian com>
- To: Jaka Mocnik <jaka activetools si>
- Cc: "Gustavo J. A. M. " Carneiro <gjc inescporto pt>, Bonobo List <gnome-components-list gnome org>
- Subject: Re: documentation, deprecated interfaces
- Date: 10 Dec 2002 09:17:58 +0000
On Mon, 2002-12-09 at 15:12, Jaka Mocnik wrote:
> heh... the use of PersistStream is a relic of the past, since I ported
> GGV (and its bonobo component) from Gnome 1 platform. I don't think that
> you should use deprecated interfaces in newly written code. On the other
> hand, I really don't know why the BonoboPersistStream object was
> deprecated: it offered a nice, effort-less way to add this functionality
> to one's component.
The PersistStream interface is not deprecated; people are encouraged to
implement it. The mechanism of using an uber-ugly, incomplete C wrapper
to implement it is however gone completely. Thus to implement
PersistStream you have to use BonoboObject in a more sensible fashion;
The easiest way to do that is to copy bonobo-persist-stream.c & .h,
rename it, chop the helpers from the bottom - and instead of throwing C
callbacks - just implement the load / save methods yourself nicely.
HTH,
Michael.
--
mmeeks gnu org <><, Pseudo Engineer, itinerant idiot
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]