Call the correct remove function when removing old content from palettes.
This commit is contained in:
parent
44b7eaefcc
commit
45efe5eff6
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user