Example #1
0
 def test_style(self):
     widget = gtk.Button()
     with capture_gi_deprecation_warnings():
         widget.get_style_context().set_state(gtk.STATE_NORMAL)
         self.assertTrue(isinstance(widget.style.base[gtk.STATE_NORMAL],
                                    gtk.gdk.Color))
Example #2
0
 def test_size_request(self):
     box = gtk.Box()
     with capture_gi_deprecation_warnings():
         self.assertEqual(box.size_request(), [0, 0])