Re: BonoboControl-based class



On Fri, 2001-12-07 at 05:30, Michael Meeks wrote:
> 
> Hi Rodrigo,
> 
> On 5 Dec 2001, Rodrigo Moya wrote:
> > BonoboControl
> > --> GnomeDbControl
> >   --> GnomeDbShellComponent
> >
> > GnomeDbShellComponent, in turn, implements a CORBA interface
> > (GNOME::Database::UIShellComponent), so, to create the get_type
> > function for this class, I use:
> 
>         Um - I think you're confused.
> 
>         You shouldn't be inheriting your UIShellComponent interface from
> BonoboControl, you should implement your interface separately and call it
> something more specific and descriptive, and aggregate it to an instance
> of GnomeDBControl.
> 
yes, I was confused, I wasn't even deriving my CORBA interface from
Bonobo::Control. Doing what you say made it work :-) (which is how it
was for the GNOME 1.x version)

BTW, why is it a bad idea to inherite from Bonobo::Control?

cheers
-- 
Rodrigo Moya <rodrigo gnome-db org> - <rodrigo ximian com>
http://www.gnome-db.org/ - http://www.ximian.com/



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]