question about the "destroy" signal

Title: question about the "destroy" signal

I would like to catch the destroy signal of a window and simply hide the window. However connecting the destroy signal of a window to a function that simply calls gtk_widget_hide on the window object does not seem to work.

Can anyone explain why this happens? Is it because the destroy signal causes the window object to be destroyed?

If so, what can be done to disable the destroy signal?

Thanks for the help,


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