|
|
| Author |
Message |
|
|
bil Familiar Face
Joined: 27 Mar 2007 Posts: 26
|
Posted: Sun Jun 17, 2007 10:16 am Post subject: no delete-event signal for gtk_widget_destroy |
|
|
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: 386 Location: Fairfax, Virginia
|
Posted: Sun Jun 17, 2007 12:50 pm Post subject: |
|
|
| 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
|
Posted: Sun Jun 17, 2007 1:39 pm Post subject: |
|
|
| Thank you! It's very clear now. |
|
| Back to top |
|
 |
|