Re: Destroy Signal



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]