Re: [gtk-list] Re: destroy and delete events



Hmmm...this brings up an interesting dilemma...I am using gtk-- 0.9.4
because the others haven't been able to compile correctly.  One more
problem is that when I tried to do this with a dialog by descending my
main window from Gtk_Dialog, when I have ANY code within my constructor,
it gets a SIGSEGV when the code is executed.  Any ideas here?

--Jason

On 7 Jul 1998, Tero Pulkkinen wrote:

> "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 --
> 
> -- 
> To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com < /dev/null
> 
> 

-------------------------------------------------------------------------------
Jason A. Pfeil, Computer Science Graduate Student      101 Carothers Hall
http://www.cs.fsu.edu/~pfeil			       C3527 University Center
pfeil@cs.fsu.edu				       (850)644-8014



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