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:29:38 +00:00 committed by Matthias Clasen
parent 9846428b25
commit 92b1967c12
3 changed files with 7 additions and 1 deletions

View File

@ -1,5 +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)
* gtk/gtktextview.c (gtk_text_view_key_press_event): Reset
im context before committing \n or \t.

View File

@ -1,5 +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)
* gtk/gtktextview.c (gtk_text_view_key_press_event): Reset
im context before committing \n or \t.

View File

@ -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;