[testinggtk] gdk_window_show () changed so that it now invalidates the whole window.
- From: Björn Lindqvist <bjornl src gnome org>
- To: svn-commits-list gnome org
- Subject: [testinggtk] gdk_window_show () changed so that it now invalidates the whole window.
- Date: Fri, 10 Jul 2009 14:04:15 +0000 (UTC)
commit 30a81d1c14deb10205e1691126b228a8bec1c578
Author: Björn Lindqvist <bjourne gmail com>
Date: Fri Jul 10 13:23:16 2009 +0200
gdk_window_show () changed so that it now invalidates the whole window.
tests/gdk/test_window.py | 16 ++++++++++++++++
1 files changed, 16 insertions(+), 0 deletions(-)
---
diff --git a/tests/gdk/test_window.py b/tests/gdk/test_window.py
index b151745..4823775 100644
--- a/tests/gdk/test_window.py
+++ b/tests/gdk/test_window.py
@@ -85,6 +85,22 @@ def test_get_origin():
assert x == 120
assert y == 80
+def test_default_update_area():
+ '''
+ The whole window area is invalidated when shown.
+
+ :commit: 9f2c97dd803aae318180fb585ea12d7996282a02
+ '''
+ window = gdk.Window(None,
+ 100, 100,
+ gdk.WINDOW_TOPLEVEL,
+ 0,
+ gdk.INPUT_OUTPUT)
+ assert not window.get_update_area()
+ window.show()
+ area = window.get_update_area().get_clipbox()
+ assert area == gdk.Rectangle(0, 0, 100, 100)
+
def test_cant_invalidate_unmapped_window():
'''
An unmapped ``gdk.Window`` cant be invalidated.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]