Re: Destroy Signal
- From: Sven Neumann <sven gimp org>
- To: Jeff Shipman <shippy nmt edu>
- Cc: <CyborgHead netscape net>, <gtk-list gnome org>
- Subject: Re: Destroy Signal
- Date: 04 Mar 2001 23:02:44 +0100
Hi,
Jeff Shipman <shippy nmt edu> writes:
> I think this should work:
>
> gtk_widget_connect_object(GTK_OBJECT(mydialog), "delete_event",
> GTK_SIGNAL_FUNC(gtk_widget_hide),
> GTK_OBJECT(mydialog));
>
It should work, but the simpler
gtk_widget_connect (GTK_OBJECT (mydialog), "delete_event",
GTK_SIGNAL_FUNC (gtk_widget_hide),
NULL);
should do as well since the signal handler is called with the
emitting object as the first parameter which happens to be
the correct pointer in this special case.
Salut, Sven
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]