diff options
author | Kristian Rietveld <kris@imendio.com> | 2007-11-09 22:44:31 +0000 |
---|---|---|
committer | Kristian Rietveld <kristian@src.gnome.org> | 2007-11-09 22:44:31 +0000 |
commit | 50a766c95ffe421269d618dd753d505c8de8e575 (patch) | |
tree | e6ff757fd6223d0ce533141e23148378ebe4b0ed | |
parent | b2ad97dd385e6970b2f524478b799e5193dab157 (diff) | |
download | gtk+-50a766c95ffe421269d618dd753d505c8de8e575.tar.gz |
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
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | gdk/gdkwindow.c | 15 |
2 files changed, 15 insertions, 6 deletions
@@ -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: diff --git a/gdk/gdkwindow.c b/gdk/gdkwindow.c index fe4e7f674a..6e57fe6467 100644 --- a/gdk/gdkwindow.c +++ b/gdk/gdkwindow.c @@ -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; } |