Re: [gtk-list] closing windows



>Hi,
>I just can't find how can I close windows, that my program creates; e.g.
>I push one button and my program opens new window, I want to know how can
>I make another button to close new window clicking on it.
>Thanks, 

gtk_signal_connect_object(GTK_OBJECT(button), "clicked",
	GTK_SIGNAL_FUNC(gtk_widget_destroy), (gpointer)window,
	NULL);

This will automatically destroy the window when you click on the button.


-- 
+- David Given ------------McQ-+ 
|  Work: dg@tao.co.uk          | Beware of the superficially profound.
|  Play: dgiven@iname.com      | 
+- http://wiredsoc.ml.org/~dg -+ 




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