Re: [gtk-list] destroy and delete events



"Jason A. Pfeil" <pfeil@nu.cs.fsu.edu> writes:
> I am having some difficulty handling the destroy signal and the
> delete_event from the WM.  I want to trap the close_box of a dialog window
> and handle it myself and not have the window actually get destroyed.  I
> just want to call the hide() method of the window...yet, the regular
> handler is still being called no matter if I return TRUE or FALSE.

It seems to work if one derives from the dialog object and override
its delete_event_impl method. (I suspect you used gtk-- because of
your previous message..) This is a known bug in gtk--. (I think
connect() thingys doesnt handle return values correctly - not sure
though..)

-- 
-- Tero Pulkkinen -- terop@modeemi.cs.tut.fi --



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