From 90ddf11f06d68deeaa8c59b4d83b07808a892281 Mon Sep 17 00:00:00 2001 From: Paul Pogonyshev Date: Wed, 14 Jan 2009 18:53:46 +0000 Subject: Bug 566571 – gtk.Buildable interface method override is not recognized MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 2009-01-14 Paul Pogonyshev Bug 566571 – gtk.Buildable interface method override is not recognized * gobject/gobjectmodule.c (pyg_type_add_interfaces): New function, break out code repetition out of pyg_type_register(). * tests/test_subtype.py (TestSubType.test_gtk_buildable_virtual_method): New test case (inactive). svn path=/trunk/; revision=997 --- tests/test_subtype.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'tests') diff --git a/tests/test_subtype.py b/tests/test_subtype.py index b74c4ff..6fce3a0 100644 --- a/tests/test_subtype.py +++ b/tests/test_subtype.py @@ -270,3 +270,20 @@ class TestSubType(unittest.TestCase): foo = Foo() d = foo.__dict__ + def test_gtk_buildable_virtual_method(self): + """Bug 566571.""" + + # Currently the bug is not solved, so skip the test. + return + + class CustomDialog(gtk.Dialog): + __gtype_name__ = 'CustomDialog' + def do_parser_finished(self, build): + self.built = True + + builder = gtk.Builder() + builder.add_from_string('') + dialog = builder.get_object('main') + + self.assert_(isinstance(dialog, gtk.Buildable)) + self.assert_(hasattr(dialog, 'built')) -- cgit