Re: GtkNotebook



On Wed, 2004-10-27 at 20:14, Leo Przybylski wrote:
Hello all,

I'm trying to create a GtkNotebook. Whenever I use 
gtk_notebook_append_page, I get the error:

(console:23209): Gtk-CRITICAL **: file gtkbindings.c: line 580 
(gtk_binding_set_by_class): assertion `GTK_IS_OBJECT_CLASS (class)' failed

(console:23209): Gtk-CRITICAL **: file gtkbindings.c: line 765 
(gtk_binding_entry_add_signal): assertion `binding_set != NULL' failed

It seems to hit right when I make the call to gtk_notebook_append_page. 
I'm using the example right out of the Gtk-2.0 Tutorial. I haven't 
changed anything.

Anyone have any idea what this is?

It seems something is not initialized, or the object passed is NULL.

Please try the attached example and let us know if it works.

Compile with:
$ gcc notebook_add_page.c -o test `pkg-config --cflags --libs gtk+-2.0`

Run with
$./test

-- 
Iago Rubio


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