Re: problem with libglade
- From: u07ih abdn ac uk
- To: aschaefe hsr ch (Alain Schaefer)
- Cc: gnome-devel-list gnome org
- Subject: Re: problem with libglade
- Date: Sun, 12 Dec 1999 21:20:54 +0000 (GMT)
> 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]