Re: [gtk-list] Removing Widgets
- From: Havoc Pennington <hp redhat com>
- To: gtk-list redhat com
- Subject: Re: [gtk-list] Removing Widgets
- Date: Fri, 30 Jul 1999 10:20:06 -0700 (PDT)
On Fri, 30 Jul 1999, Christoph Ender wrote:
>
> is it possible to remove/replace widgets that were already added to a
> scrolledwindow or hbox/vbox after calling gtk_main()? Or do I have to open
> a completely new window to change anything?
>
Try gtk_container_remove(). Be careful to _ref() the child before removal,
or it will get nuked - so:
gtk_widget_ref(child);
gtk_container_remove(parent, child);
gtk_container_add(new_parent, child);
gtk_widget_unref(child);
Havoc
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]