OSDN Git Service

dropdowns: remove assertion
authorAndrew Chadwick <andrewc-git@piffle.org>
Mon, 26 Sep 2011 16:48:12 +0000 (17:48 +0100)
committerAndrew Chadwick <andrewc-git@piffle.org>
Mon, 26 Sep 2011 16:48:12 +0000 (17:48 +0100)
Remove an assertion that breaks Ubuntu Lucid's version of PyGTK. It's
not really needed anyway.

https://gna.org/bugs/?18735

gui/dropdownpanel.py

index 0fecc24..80ce094 100644 (file)
@@ -210,7 +210,6 @@ class DropdownPanel (gtk.Window):
 
     def _get_panel_pos(self):
         button = self._panel_button
-        assert button.get_mapped()
         x, y = button.window.get_origin()
         x += button.allocation.x
         y += button.allocation.y