testinggtk r396 - trunk/tests/gdk
- From: bjornl svn gnome org
- To: svn-commits-list gnome org
- Subject: testinggtk r396 - trunk/tests/gdk
- Date: Sat, 30 Aug 2008 00:32:10 +0000 (UTC)
Author: bjornl
Date: Sat Aug 30 00:32:10 2008
New Revision: 396
URL: http://svn.gnome.org/viewvc/testinggtk?rev=396&view=rev
Log:
Test to check that window is hidden after being reparented
Modified:
trunk/tests/gdk/test_window.py
Modified: trunk/tests/gdk/test_window.py
==============================================================================
--- trunk/tests/gdk/test_window.py (original)
+++ trunk/tests/gdk/test_window.py Sat Aug 30 00:32:10 2008
@@ -134,3 +134,24 @@
assert window.is_visible()
window.hide()
assert not window.is_visible()
+
+def test_reparent_hides_window():
+ '''
+ Ensure that reparenting a window hides it.
+
+ :bug: #548993
+ '''
+ parent = gdk.Window(None,
+ 100, 100,
+ gdk.WINDOW_TOPLEVEL,
+ 0,
+ gdk.INPUT_OUTPUT)
+ child = gdk.Window(None,
+ 100, 100,
+ gdk.WINDOW_TOPLEVEL,
+ 0,
+ gdk.INPUT_OUTPUT)
+ parent.show()
+ child.show()
+ child.reparent(parent, 0, 0)
+ assert not child.is_visible()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]