Re: [gtk-list] closing windows



> gtk_signal_connect_object (GTK_OBJECT (button2),
> "clicked",GTK_SIGNAL_FUNC (gtk_widget_destroy),GTK_OBJECT (window));
> 
> and it works but for the ok button on the click event I call up a
> function to check if all the info entered is ok but I wnt to kill the
> window and the same fucniton how can I do that????????????

You can attach two signals to an object, so with your okay button, you
would attach, as the SECOND signal, the window destroy code you have
attached to the Cancel button.  Now, remember, make the window destruction
signal the SECOND one, since if you don't, funky things can happen (since
your okay button is destroyed prior to other signals being called).

Brett.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]