bonobo control problem

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

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);

factory_fn, NULL);

What am I doing wrong? I have been trying for the past few hours and can
not get this to work.

I appreciate any help someone could give me, Steve

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