[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: gtk_container_remove
- From: "Matt M." <matt boda virtualave net>
- To: gtk-app-devel-list redhat com
- Cc: jlove clear net nz
- Subject: Re: gtk_container_remove
- Date: Wed, 27 Oct 1999 06:15:52 -0700
What you may wanna check out instead is gtk_widget_hide() and then when you
need to show the widgets again, use gtk_widget_show(), that way they still
exist when you dont see them, they are just hidden.
On Wed, 27 Oct 1999, Jamie wrote:
> Emmanuel DELOGET wrote:
>
> > So you have your remove code:
> >
> > gtk_widget_ref(w);
> > tag_removed_widget(w);
> > gtk_container_remove(c, w);
> >
> > and you add count
> >
> > gtk_container_add(c, w);
> > if (widget_has_remove_tag(w))
> > gtk_widget_unref(w);
> > Emmanuel
> >
>
> Ok, thanks. This is a bit of an overkill for what I need, as all I need
> to do is ref the widget at the start of the program, and not worry about
> it (the UI widgets that I need this for frequently swap, and are
> required for the duration of the program as it is).
>
> Along related lines, if I unref a widget, and that unref'ing takes the
> ref count to 0, does gtk automatically remove the widget (and any
> widgets packed within that widget) from memory?
>
> Cheers
>
> --
>
> Jamie Love
> jlove@clear.net.nz
> jdl28@student.canterbury.ac.nz
>
>
> --
> To unsubscribe: mail gtk-app-devel-list-request@redhat.com with
> "unsubscribe" as the Subject.
>
> Mailing list concerns should be mailed to <listmaster@redhat.com>
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]