[Sugar-devel] [PATCH 18/21 sugar-toolkit] ToolInvoker._get_alignments: fix missing self parameter

Sascha Silbe sascha-pgp at silbe.org
Fri Oct 15 17:01:22 EDT 2010


Caught by pylint. I wonder if we need this piece of code as nobody every
triggered it.

Signed-off-by: Sascha Silbe <sascha-pgp at silbe.org>

diff --git a/src/sugar/graphics/palettewindow.py b/src/sugar/graphics/palettewindow.py
index 81540e3..c5deecd 100644
--- a/src/sugar/graphics/palettewindow.py
+++ b/src/sugar/graphics/palettewindow.py
@@ -853,7 +853,7 @@ class ToolInvoker(WidgetInvoker):
     def _get_alignments(self):
         parent = self._widget.get_parent()
         if parent is None:
-            return WidgetInvoker._get_alignments()
+            return WidgetInvoker._get_alignments(self)

         if parent.get_orientation() is gtk.ORIENTATION_HORIZONTAL:
             return self.BOTTOM + self.TOP
--
1.7.1



More information about the Sugar-devel mailing list