RE: Signals and marshaling



-----Original Message-----
From: Donna S. Martin [mailto:donna omartin com]
Sent: Wednesday, January 24, 2001 6:43 PM
To: Dmitry Ponomaryov; gtk-app-devel-list gnome org
Subject: Re: Signals and marshaling

Your 'Quit' should be tied to your destroy
callback rather than your delete-event. 
If you are exiting within the delete-event
and not processing the destroy, then it
on't work :-).  
 It may be my fault :-((in explanation)but I mean the following:
1. destroy - is a dirty exit method: it simply calls gtk_main_quit()
2. delete - is a right exit method: it SAVEs user's application data
            AND exit (or return false and so exit through destroy_cb).
'Quit' menu item should(must) ensure right exit method(if user
select 'Quit'menu item his data(work) must not be discarted) - so
'Quit' should(must) "call" (one way or another) delete method (and NOT
destroy).






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