guard for windows with GDK_WINDOW_DESTROYED set. (Fixes #482531, reported

2007-11-09  Kristian Rietveld  <kris@imendio.com>

	* gdk/gdkwindow.c (gdk_window_process_all_updates): guard for
	windows with GDK_WINDOW_DESTROYED set.  (Fixes #482531, reported
	by Sebastien Bacher).


svn path=/trunk/; revision=18975
This commit is contained in:
Kristian Rietveld 2007-11-09 22:44:31 +00:00 committed by Kristian Rietveld
parent b2ad97dd38
commit 50a766c95f
2 changed files with 15 additions and 6 deletions

View File

@ -1,3 +1,9 @@
2007-11-09 Kristian Rietveld <kris@imendio.com>
* gdk/gdkwindow.c (gdk_window_process_all_updates): guard for
windows with GDK_WINDOW_DESTROYED set. (Fixes #482531, reported
by Sebastien Bacher).
2007-11-09 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkmain.c:

View File

@ -2435,12 +2435,15 @@ gdk_window_process_all_updates (void)
{
GdkWindowObject *private = (GdkWindowObject *)tmp_list->data;
if (private->update_freeze_count ||
gdk_window_is_toplevel_frozen (tmp_list->data))
update_windows = g_slist_prepend (update_windows, private);
else
gdk_window_process_updates_internal (tmp_list->data);
if (!GDK_WINDOW_DESTROYED (tmp_list->data))
{
if (private->update_freeze_count ||
gdk_window_is_toplevel_frozen (tmp_list->data))
update_windows = g_slist_prepend (update_windows, private);
else
gdk_window_process_updates_internal (tmp_list->data);
}
g_object_unref (tmp_list->data);
tmp_list = tmp_list->next;
}