Re: Destroy Signal



I think this should work:

gtk_widget_connect_object(GTK_OBJECT(mydialog), "delete_event",
                          GTK_SIGNAL_FUNC(gtk_widget_hide),
                          GTK_OBJECT(mydialog));

Jeff "Shippy" Shipman     E-Mail: shippy nmt edu
Computer Science Major    ICQ: 1786493
New Mexico Institute of Mining and Technology
Homepage: http://www.nmt.edu/~shippy

On Sun, 4 Mar 2001 CyborgHead netscape net wrote:

> Hello.
>      Just a quick question? I have written an application in GTK had have many dialog boxes. When I press the X button on the top right of the dialog box it is killed, and when I try and show the dialog box again I get a run time error, which is natural because by pressing the X Button, I killed the dialog box widget, instead of hiding it. Is there any way I can overwrite the X Button to hide the dialog box instead of killing it, or even disable this button to prevent this happening?
>
> Thakn Ciaran.
> __________________________________________________________________
> Get your own FREE, personal Netscape Webmail account today at http://webmail.netscape.com/
>
> _______________________________________________
> gtk-list mailing list
> gtk-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtk-list
>





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