AlannY wrote:
> 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 ();

Where is this function defined? How does that function look? Post _all_ 
code for MyWidget and not just the parts you think are important.

> gtk_container_add (GTK_CONTAINER (mywidget), button);
> [...]
> 
> But I got a message:
> 
> Gtk-CRITICAL **: gtk_container_add: assertion `GTK_IS_CONTAINER 
> (container)' failed
> 
> Why?

tom


-- 
    So Long, and Thanks for All the Fish
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Reply via email to