Re: gtk_container_add failed



On Tuesday 10 Jun 2003 3:35 am, weiwu wrote:

snip

 gtk_main ();

 When I app it, I get this:

Gtk-CRITICAL **: file gtkcontainer.c: line 712 (gtk_container_add):
assertion
 GTK_IS_CONTAINER(container) ' failed.
The button doesnot ON the pixmap!WHY?

This error occurs because a pixmap is not a widget and you can only add a 
widget to a container.

Ian




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