If the window is destroyed, we still need to deliver the destroy event.

2005-09-02  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtkmain.c (gtk_get_event_widget): If the window is destroyed,
	we still need to deliver the destroy event.  (#314980, Chris Lahey)
This commit is contained in:
Matthias Clasen
2005-09-02 17:31:53 +00:00
committed by Matthias Clasen
parent 1c705dd477
commit 9dfc161c87
3 changed files with 12 additions and 2 deletions

View File

@@ -1,3 +1,8 @@
2005-09-02 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkmain.c (gtk_get_event_widget): If the window is destroyed,
we still need to deliver the destroy event. (#314980, Chris Lahey)
2005-09-02 Alexander Larsson <alexl@redhat.com>
* gtk/gtkfilechooserdefault.c: (shortcuts_add_volumes),

View File

@@ -1,3 +1,8 @@
2005-09-02 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkmain.c (gtk_get_event_widget): If the window is destroyed,
we still need to deliver the destroy event. (#314980, Chris Lahey)
2005-09-02 Alexander Larsson <alexl@redhat.com>
* gtk/gtkfilechooserdefault.c: (shortcuts_add_volumes),

View File

@@ -1256,7 +1256,7 @@ gtk_main_do_event (GdkEvent *event)
* in the user_data field of GdkWindow's.
* Ignore the event if we don't have a widget for it, except
* for GDK_PROPERTY_NOTIFY events which are handled specialy.
* Though this happens rarely, bogus events can occour
* Though this happens rarely, bogus events can occur
* for e.g. destroyed GdkWindows.
*/
event_widget = gtk_get_event_widget (event);
@@ -2044,7 +2044,7 @@ gtk_get_event_widget (GdkEvent *event)
widget = NULL;
if (event && event->any.window &&
!GDK_WINDOW_DESTROYED (event->any.window))
(event->type == GDK_DESTROY || !GDK_WINDOW_DESTROYED (event->any.window)))
gdk_window_get_user_data (event->any.window, (void**) &widget);
return widget;