1 Mar 2003 23:48
bonobo control problem
Stephen M. Przepiora <steve <at> przepiora.org>
2003-03-01 22:48:48 GMT
2003-03-01 22:48:48 GMT
I am trying to learn how to make a bonobo control and created a simple
one that just makes a label. The test container I wrote seems to work
fine with other controls so I have been concentrating on the control I
wrote.
The error I am getting is:
(bonobo_test:5752): Bonobo-CRITICAL **: file bonobo-object.c: line 286
(bonobo_object_unref): assertion `ao != NULL' failed
The code for the control is small so I am pasting it in here:
#define OAFIID "OAFIID:Bonobo_Test_Label"
static BonoboObject* factory_fn (BonoboGenericFactory *this, const char
*object_id, void *data)
{
GtkWidget *label = NULL;
BonoboObject *object = NULL;
label = gtk_label_new ("foo");
gtk_widget_show (label);
return BONOBO_OBJECT (label);
}
BONOBO_OAF_FACTORY_MULTI (OAFIID, "Test bonobo label", VERSION,
factory_fn, NULL);
What am I doing wrong? I have been trying for the past few hours and can
not get this to work.
(Continue reading)
RSS Feed