[gtk+/client-side-windows: 246/284] Fix assert, it was checking the wrong window
- From: Alexander Larsson <alexl src gnome org>
- To: svn-commits-list gnome org
- Subject: [gtk+/client-side-windows: 246/284] Fix assert, it was checking the wrong window
- Date: Thu, 2 Apr 2009 14:20:40 -0400 (EDT)
commit a7b61390291c15101bd09c23d5a6a31afe6a1c2f
Author: Alexander Larsson <alexl redhat com>
Date: Wed Feb 4 16:36:33 2009 +0100
Fix assert, it was checking the wrong window
We keep the update freeze count in the impl_window, not in
child windows.
---
gdk/gdkwindow.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/gdk/gdkwindow.c b/gdk/gdkwindow.c
index 57d3fe3..8710153 100644
--- a/gdk/gdkwindow.c
+++ b/gdk/gdkwindow.c
@@ -5009,9 +5009,10 @@ gdk_window_thaw_updates (GdkWindow *window)
GdkWindowObject *impl_window;
g_return_if_fail (GDK_IS_WINDOW (window));
- g_return_if_fail (private->update_freeze_count > 0);
impl_window = gdk_window_get_impl_window (private);
+
+ g_return_if_fail (impl_window->update_freeze_count > 0);
if (--impl_window->update_freeze_count == 0)
gdk_window_schedule_update (GDK_WINDOW (impl_window));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]