Re: gtk_container_add failed



On Sun, 29 Jun 2003, Ian Bell wrote:

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.

Not totally exact : a GtkPixmap is a GtkWidget, but is not a GtkContainer.

Vincent


Ian

_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


-- 
TORRI Vincent
Mathematiques Appliquees Bordeaux                                                
Institut de Mathematiques                                                       
Universite Bordeaux 1                                                           
351 cours de la liberation                                                      
33 405 Talence cedex - France                                                   
                                                                                
Tel : 33 (0)5 40 00 21 42                                                       
Fax : 33 (0)5 40 00 26 26                                                       
--




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