Re: Using gnumeric bonobo component

Jean Bréfort <[email protected]> Fri, 23 Sep 2005 10:33:51 +0200
Newsgroups gmane.comp.gnome.components
Message-ID <[email protected]>
Le vendredi 23 septembre 2005 =C3=A0 09:07 +0200, Kutloisiso Mona a =C3=A9=
crit :
> Nickolay V. Shmyrev wrote:
> >=D0=92 =D0=A7=D1=82=D0=B2, 22/09/2005 =D0=B2 23:52 +0200, Kutloisiso M=
ona =D0=BF=D0=B8=D1=88=D0=B5=D1=82:
> > =20
> >>Hi
> >>
> >>I am writing a gtk application. I want to embed a gnumeric bonobo=20
> >>component in this application and having difficultly displaying the=20
> >>control. The container gets displayed but the control does not displa=
y.=20
> >>I can get the control but not the property bag.
> >>
> >>I would appreciate any help.
> >>Kutloisiso
> >>   =20
> >
> >
> >Dear Kutloisiso.=20
> >
> >Your problem is quite unclear. What is the real problem you have with
> >embedding gnumeric control? Can you please create _small_ example that
> >reproduce your problem and describe, what is going wrong.=20
> >
> >Please look in a simple source below. It's used to display Bonobo samp=
le
> >control entry and works for me. Please replace the OAFIID below to
> >gnumeric control OAFIID and try it also.=20
> >
> >Hope this helps
> >
> >#include <libbonoboui.h>
> >
> >int=20
> >main (int argc, char* argv[])
> >{
> >	GtkWidget *app;
> >	GtkWidget *widget;
> >
> >	if (!bonobo_ui_init ("bonobo-test", "1.0", &argc, argv))
> >		g_error (_("Cannot init libbonoboui code"));
> >
> >	app =3D gtk_window_new (GTK_WINDOW_TOPLEVEL);
> >=09
> >	widget =3D bonobo_widget_new_control ("OAFIID:Bonobo_Sample_Entry",
> >CORBA_OBJECT_NIL);
> >=09
> >	gtk_container_add (GTK_CONTAINER (app), widget);
> >	gtk_widget_show_all (GTK_WIDGET (app));
> >
> >	gtk_main ();
> >
> >	return 0;
> >}
> >
> >
> >
> >
> > =20
> My code is a bit long so I just modified the above and used the OAFIID=20
> with OAFIID:GNOME_Gnumeric_Control. The orginal code works and shows th=
e=20
> sample control but nothing for gnumeric. I am using gnumeric 1.2.13=20
> since it seems bonobo has been removed from gnumeric 1.4. Any idea why=20
> bonobo was removed.

bonoboui will be soon deprecated :-(