Re: Yelp fork bonobo

"Nickolay V. Shmyrev" <[email protected]> Tue, 22 Mar 2005 11:51:56 +0300
Newsgroups gmane.comp.gnome.components
Message-ID <[email protected]>
=F7 =F0=CE=C4, 21/03/2005 =D7 15:09 +0100, mammique =D0=C9=DB=C5=D4:
> Hello,
>=20
> i'm trying to fork Yelp to create a dedicated helper application for a
> LiveCD (garbure.org), i already modified some code inside Yelp to make =
a
> different interface,

Do you really need this? What was wrong with old Yelp interface?
Probably you=20
need just to extend yelp interface, no?

>  but when i run it, it still use Yelp Bonobo pid (as
> i understand), so MyApp and Yelp are handeled as the same application
> inside Gnome, and each new window of Yelp or MyApp are the same.

You mean that Yelp interface and new Garbure interface now implemented
in the same binary, don't you?

>  To
> separate them (i need to run Yelp and MyApp at the same time), i
> replaced "Yelp/YELP/yelp" by "Garbure/GARBURE/garbure", inside the Yelp
> code, and renamed the files as well.=20

Not sure that file renaming is needed.

> It configures and compiles well,
> orbit-idl-2 produces good "#define" (as i think) :
>=20
> #define TC_IMPL_TC_GNOME_Garbure_6 'G'
> #define TC_IMPL_TC_GNOME_Garbure_7 'a'
> #define TC_IMPL_TC_GNOME_Garbure_8 'r'
> #define TC_IMPL_TC_GNOME_Garbure_9 'b'
> #define TC_IMPL_TC_GNOME_Garbure_10 'u'
> #define TC_IMPL_TC_GNOME_Garbure_11 'r'
> #define TC_IMPL_TC_GNOME_Garbure_12 'e'
>=20
> but when i run it it fails about Bonobo error :
>=20
> -----------------------------------------------------------------------=
-
> $ LANG=3DC ./garbure
>=20
> (garbure:25755): Bonobo-CRITICAL **: file bonobo-running-context.c: lin=
e
> 453 (bonobo_running_context_auto_exit_unref): assertion `object !=3D NU=
LL'
> failed
>=20
> Garbure-ERROR **: Could not activate Garbure: 'Error checking error; no
> exception'
> aborting...
> -----------------------------------------------------------------------=
-
>=20

That already shows that you have some problems, why not try to debug it,
just start garbure under gdb and put breakpoint on g_log. that backtrace
should tell you something about problem. From the first look it seems
that factory creation is failed, probably you've forgot to rename
something.

> Can anybody tell me where i'm wrong ? I don't understand well this
> mecanism, i don't know what else to do except s/Yelp/Garbure/g to tell
> Bonobo that those 2 apps are different.
>=20
> Thank you.
>=20
> Best regards.
>=20

The main point is that renaming isn't needed at all. I think if you can
give us a link to your code it would be much easier to solve  your
problem.

> Camille.
>=20
> _______________________________________________
> gnome-components-list mailing list
> [email protected]
> http://mail.gnome.org/mailman/listinfo/gnome-components-list