Re: [Java-gnome-developer] Glade with multiple gtk windows or dialog
Brought to you by:
afcowie
From: Andrew C. <an...@op...> - 2006-07-08 15:28:52
|
On Wed, 2006-07-05 at 13:34 +0200, someone with no name wrote: > When I try to open Dialog/Window after having already close it, I > obtain the following errors. ... > I have try to intercepted delete_event and event_destroy without success. All you should have to trap is LifeCycleEvent.Type.DELETE in lifeCylceQuery() of the LifeCycleListener. > I really do not see how not intercepted the signal to overload him > with for example Window.hide (), or some thing like that. If you call the Window's hide() method, then the object will still be live. When doing so, however, you have to return true to tell GTK that you've handled it so that it does not continue to propagate the signal. [This is important because the default handler for delete-event is to in turn emit destroy-event with the default result that the Window is destroyed] Did you return true? If you post your code you'll probably make it easier for people to help you. AfC London P.S. I just noticed that the JavaDoc for LifeCycleListener is mush, so I'm fixing it. |