From b5158a00889ad8bd1f737936990d3fad6e59c7db Mon Sep 17 00:00:00 2001 From: Paul Pogonyshev Date: Sat, 21 Jun 2008 18:40:11 +0000 Subject: Fix 'use_underline' being ignored if neither 'text' nor 'stock' is set 2008-06-21 Paul Pogonyshev * gtk/gtk.override (_wrap_gtk_button_new): Fix 'use_underline' being ignored if neither 'text' nor 'stock' is set (bug #524187). * tests/Makefile.am: * tests/test_button.py: New test file. svn path=/trunk/; revision=2995 --- tests/Makefile.am | 1 + tests/test_button.py | 12 ++++++++++++ 2 files changed, 13 insertions(+) create mode 100644 tests/test_button.py (limited to 'tests') diff --git a/tests/Makefile.am b/tests/Makefile.am index c2d40c88..444a4275 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -4,6 +4,7 @@ tests = \ test_actiongroup.py \ test_api.py \ test_bin.py \ + test_button.py \ test_container.py test_conversion.py \ test_dialog.py \ diff --git a/tests/test_button.py b/tests/test_button.py new file mode 100644 index 00000000..a38edafa --- /dev/null +++ b/tests/test_button.py @@ -0,0 +1,12 @@ +import unittest + +from common import gtk + +class TextButton(unittest.TestCase): + # Bug #524187. + def test_constructor(self): + button = gtk.Button() + self.assert_(button.props.use_underline) + +if __name__ == '__main__': + unittest.main() -- cgit v1.2.1