diff options
author | Simon Feltman <sfeltman@src.gnome.org> | 2015-10-31 14:06:40 -0700 |
---|---|---|
committer | Simon Feltman <sfeltman@src.gnome.org> | 2015-10-31 14:18:23 -0700 |
commit | 4164e7088be446fcab65cef642c6853aad3b6a69 (patch) | |
tree | 0d1f5e637da1bffe559530de36f95199e6390719 /tests/test_overrides_gtk.py | |
parent | a8293f411234180d70e9ff979954b28381842e1f (diff) | |
download | pygobject-4164e7088be446fcab65cef642c6853aad3b6a69.tar.gz |
tests: Fix failure due to new GTK+ warning regarding size_allocate()
Call get_preferred_size() to avoid size_allocated() warning in
size-allocated signal handler test.
Diffstat (limited to 'tests/test_overrides_gtk.py')
-rw-r--r-- | tests/test_overrides_gtk.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/test_overrides_gtk.py b/tests/test_overrides_gtk.py index 44f2f6ec..9aa592c7 100644 --- a/tests/test_overrides_gtk.py +++ b/tests/test_overrides_gtk.py @@ -692,6 +692,7 @@ class TestSignals(unittest.TestCase): with realized(win): win.show() + win.get_preferred_size() win.size_allocate(rect) self.assertTrue(win._alloc_called) self.assertIsInstance(win._alloc_value, Gdk.Rectangle) |