[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: destroying widgets on C++
- From: Germano Leichsenring <germano s3ws6 seg kobe-u ac jp>
- To: gtk-app-devel-list redhat com
- Subject: Re: destroying widgets on C++
- Date: Tue, 24 Nov 1998 22:06:21 +0900
On Tue, 24 Nov 1998 13:52:01 +0100, Antonio Miguel Corbi Bellot <acorbi@altea.dlsi.ua.es> wrote:Germano Leichsenring wrote:
> >
> > I have a class which have a window in it; I want the class to be destroyed
> > when the widget is destroyed, and the widget be destroyed when the class is
> > destroyed. I've been trying it for a while, but can't find a solution that
> > works. Has anybody done that?
> >
>
> Something like this?
> ...
> gtk_signal_connect (GTK_OBJECT(el_boton), "clicked",
> GTK_SIGNAL_FUNC(destruye_objeto_cb), la_ventana);
>
> ....
Actually I need to connect the "destroyed" signal of the window; like, if the
user closes the window, the class is destroyed.
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]