Hello. I'm writing a custom widget. It's inherits from GtkContainer. So:
typedef struct _MyWidget MyWidget; typedef struct _MyWidgetClass MyWidgetClass; struct _MyWidget { GtkContainer parent; }; struct _MyWidgetClass { GtkContainerClass parent_class; }; I'm wrote a small test program: [...] mywidget = mywidget_new (); gtk_container_add (GTK_CONTAINER (mywidget), button); [...] But I got a message: Gtk-CRITICAL **: gtk_container_add: assertion `GTK_IS_CONTAINER (container)' failed Why? Thank you. _______________________________________________ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list