GTK+ Forums Forum Index GTK+ Forums
Discussion forum for GTK+ and Programming. Ask questions, troubleshoot problems, view and post example code, or express your opinions.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

no delete-event signal for gtk_widget_destroy

 
Post new topic   Reply to topic    GTK+ Forums Forum Index -> GTK+ Programming
Author Message
bil
Familiar Face


Joined: 27 Mar 2007
Posts: 26

PostPosted: Sun Jun 17, 2007 10:16 am    Post subject: no delete-event signal for gtk_widget_destroy Reply with quote

I found that close a top-level window using
gtk_widget_destroy window
does not trigger the 'delete_event' signal

is this a feature or a bug? or something wrong with my code?
Back to top
openldev
Never Seen the Sunlight


Joined: 21 Sep 2005
Posts: 387
Location: Fairfax, Virginia

PostPosted: Sun Jun 17, 2007 12:50 pm    Post subject: Reply with quote

It isn't a bug. If the user initializes the action, it causes a delete-event because they are trying to destroy the window. If you call gtk_widget_destroy(), it is assumed that you have already checked that this is ok with the user. Therefore, this function bypasses the delete-event signal.
Back to top
bil
Familiar Face


Joined: 27 Mar 2007
Posts: 26

PostPosted: Sun Jun 17, 2007 1:39 pm    Post subject: Reply with quote

Thank you! It's very clear now.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    GTK+ Forums Forum Index -> GTK+ Programming All times are GMT
Page 1 of 1

 


Powered by phpBB © 2001, 2005 phpBB Group
CodeBB 1.0 Beta 2
Protected by Anti-Spam ACP