Re: problem with libglade



>         gtk_container_remove( container, actual_widget );

> I loose my widget after the gtk_container_remove call. actual_widget
> is not a GTK_WIDGET anymore.  When I create the widgets with c-code
> generated by glade it works fine.

I think you need to reference your widget so it doesn't get destroyed when you
call gtk_container_remove

gtk_widget_ref (actual_widget);
gtk_container_remove (container, actual_widget);


/* Do something with the widget */
gtk_widget_unref (actual_widget);

iain



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