testinggtk r414 - trunk/tests
- From: bjornl svn gnome org
- To: svn-commits-list gnome org
- Subject: testinggtk r414 - trunk/tests
- Date: Mon, 8 Sep 2008 10:50:34 +0000 (UTC)
Author: bjornl
Date: Mon Sep 8 10:50:34 2008
New Revision: 414
URL: http://svn.gnome.org/viewvc/testinggtk?rev=414&view=rev
Log:
Add test for reference counting problem when unparenting
Modified:
trunk/tests/test_container.py
Modified: trunk/tests/test_container.py
==============================================================================
--- trunk/tests/test_container.py (original)
+++ trunk/tests/test_container.py Mon Sep 8 10:50:34 2008
@@ -18,3 +18,19 @@
container = gtk.Toolbar()
widget = gtk.Button()
container.remove(widget)
+
+ utils fail_on_warnings
+def test_unparent_ref_count():
+ '''
+ Ensure that the reference count for a widget inside a container is
+ correct after it has been unparented. The container still holds a
+ reference to the widget so the container must be the first of them
+ to be freed.
+
+ :bug: #551349
+ '''
+ widget = gtk.HBox()
+ container = gtk.HBox()
+ container.add(widget)
+ widget.unparent()
+ print 'the end'
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]