From f613532b09da01d02a21d85f5e70d8e74789e84d Mon Sep 17 00:00:00 2001 From: Tomeu Vizoso Date: Tue, 3 Jun 2008 13:04:09 +0200 Subject: [PATCH] Attach palette to parent when no widget is given. --- src/sugar/graphics/palette.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/sugar/graphics/palette.py b/src/sugar/graphics/palette.py index 82feca11..12774770 100644 --- a/src/sugar/graphics/palette.py +++ b/src/sugar/graphics/palette.py @@ -936,12 +936,12 @@ class WidgetInvoker(Invoker): else: self._widget = parent - self._enter_hid = widget.connect('enter-notify-event', - self.__enter_notify_event_cb) - self._leave_hid = widget.connect('leave-notify-event', - self.__leave_notify_event_cb) - self._release_hid = widget.connect('button-release-event', - self.__button_release_event_cb) + self._enter_hid = self._widget.connect('enter-notify-event', + self.__enter_notify_event_cb) + self._leave_hid = self._widget.connect('leave-notify-event', + self.__leave_notify_event_cb) + self._release_hid = self._widget.connect('button-release-event', + self.__button_release_event_cb) self.attach(parent)