GTK+ Forums

Discussion forum for GTK+ and Programming. Ask questions, troubleshoot problems, view and post example code, or express your opinions.
It is currently Thu Jul 31, 2014 1:32 pm

All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: no delete-event signal for gtk_widget_destroy
PostPosted: Sun Jun 17, 2007 10:16 am 
Offline
Familiar Face

Joined: Tue Mar 27, 2007 8:56 am
Posts: 26
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?


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jun 17, 2007 12:50 pm 
Offline
Never Seen the Sunlight

Joined: Wed Sep 21, 2005 3:07 am
Posts: 384
Location: Fairfax, Virginia
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.

_________________
Andrew Krause

Foundations of GTK+ Development: Buy now for only $31.49!


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jun 17, 2007 1:39 pm 
Offline
Familiar Face

Joined: Tue Mar 27, 2007 8:56 am
Posts: 26
Thank you! It's very clear now.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC


Who is online

Users browsing this forum: Google [Bot] and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group