Re: [gtk-list] Re: closing windows
- From: Alexander Kotelnikov <sasha AK2614 spb edu>
- To: gtk-list redhat com
- Subject: Re: [gtk-list] Re: closing windows
- Date: Wed, 16 Dec 1998 23:11:09 +0300 (MSK)
On Wed, 16 Dec 1998, David Given wrote:
> >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.
>
> 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.
And what will be the difference with:
gtk_signal_connect(GTK_OBJECT(button), "clicked",
GTK_SIGNAL_FUNC(gtk_widget_hide), window);
?
Thanks,
_____
Alexander Kotelnikov
Saint-Petersburg, Russia
mailto:sasha@ak2614.spb.edu
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]