Re: problem getting PropertyBag



jeroen wrote:

> Hi,
>
> On Thu, 26 Jul 2001, Dietmar Maurer wrote:
>
> > Jeroen Zwartepoorte wrote:
> >
> > > Hi,
> > >
> > > I've added support for bonobo-conf to an already bonobo enabled widget.
> > > Everything works fine on my machine, but on somebody elses, it fails
> > > when trying to get the config:/scintilla PropertyBag.
> > >
> > > The widget exposes the PropertyControl interface. In the get method of
> > > the bonobo_property_control_new, i first need to get the PropertyBag
> > > containing the widget's properties:
> > >
> > > CORBA_exception_init (&ev);
> > >
> > > bag = bonobo_get_object ("config:/scintilla", "Bonobo/PropertyBag",
> > > &ev);
> > > g_assert (!BONOBO_EX (&ev));
> > >
> > > The bonobo_get_object call fails (the assertion on the next line fails).
> > >
> > > Why does this fail?
> >
> > Difficult to say. What version of bonobo-conf do you use (you need at least
> > 0.7)? Maybe you can extract the code into a little test program and send it
> > to me? I will then be able to debug it for you.
>
> We both use bonobo-conf 0.6 (i downloaded it via red-carpet, i don't know
> how jpr (that's the other person) installed it.
>
> I'll see if i can write a very small program (that only tries to get the
> config:/scintilla PropertyBag) that shows the same problem on jpr's
> machine.

You will need at least version 0.7, it will not work with 0.6.

- Dietmar





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