Bonobo::Unknown
- From: Mathieu Lacage <lacage email enst fr>
- To: gnome-components-list gnome org
- Subject: Bonobo::Unknown
- Date: 24 Apr 2000 10:34:20 +0200
hi all,
Once more during my long code reading of Bonobo implementation, I have come to the folowing
problem:
the bonobo_object_add_interface doc says:
/**
* bonobo_object_add_interface:
* @object: The BonoboObject to which an interface is going to be added.
* @newobj: The BonoboObject containing the new interface to be added.
*
* Adds the interfaces supported by @newobj to the list of interfaces
* for @object. This function adds the interfaces supported by
* @newobj to the list of interfaces support by @object.
*/
should it not be:
/**
* bonobo_object_add_interface:
* @object: The BonoboObject to which an interface is going to be added.
* @newobj: The BonoboObject containing the new interface to be added.
*
* Adds the interfaces supported by @newobj to the list of interfaces
* for @object. This function also adds the interfaces supported by
* @object to the list of interfaces supported by @newobj.
*/
Also, imagine I have A, B and C with interfaces IA, IB, and IC.
I make:
bonobo_object_add_interface (A, B)
bonobo_object_add_interface (A, C)
B = bonobo_object_QI (A, IB)
bonobo_object_QI (B, IC) ------> this will not return C.
object B does not know about object C.
The idea is that we add a list of the objects which have been added to an
interface. Then everytime we add a set of objects to another one,
we build the new linked list of the supported interfaces.
Then, we update the linked lists of the objects which had been added before to us.
Then, we update the linked lists of the objects which had been added before to the
object we have added to ourself.
Can I implement it and mail a patch here ?
Also, I am wondering:
If I ask
bonobo_object_QI (A, Unknown)
bonobo_object_QI (B, Unknown)
I will not get the same result, I guess...
Mathieu
--
Mathieu Lacage, mathieu@gnu.org
http://www.advogato.org/person/mathieu
ch 224, 212 Rue de Tolbiac, 75013 Paris, France
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]