Re: Using gnumeric bonobo component
"Nickolay V. Shmyrev" <[email protected]> Fri, 23 Sep 2005 02:12:08 +0400
| Newsgroups | gmane.comp.gnome.components |
|---|---|
| Message-ID | <[email protected]> |
=D0=92 =D0=A7=D1=82=D0=B2, 22/09/2005 =D0=B2 23:52 +0200, Kutloisiso Mona=
=D0=BF=D0=B8=D1=88=D0=B5=D1=82:
> Hi
>=20
> 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 display.=
=20
> I can get the control but not the property bag.
>=20
> I would appreciate any help.
> Kutloisiso
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 sample
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;
}