From 45efe5eff6cb1959c6ff7b8868605bf3b09d9b06 Mon Sep 17 00:00:00 2001 From: Benjamin Berg Date: Sun, 30 Sep 2007 00:20:27 +0200 Subject: [PATCH] Call the correct remove function when removing old content from palettes. --- sugar/graphics/palette.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sugar/graphics/palette.py b/sugar/graphics/palette.py index b12d0a64..aaf6f6a8 100644 --- a/sugar/graphics/palette.py +++ b/sugar/graphics/palette.py @@ -188,7 +188,7 @@ class Palette(gtk.Window): def set_content(self, widget): if len(self._content.get_children()) > 0: - self.remove(self._content.get_children()[0]) + self._content.remove(self._content.get_children()[0]) if widget is not None: self._content.add(widget)