From dd15b0d063ccfa2e76a81231b969dc0ec4293efd Mon Sep 17 00:00:00 2001 From: Marco Pesenti Gritti Date: Fri, 15 Sep 2006 01:59:49 +0200 Subject: [PATCH] Improve function naming --- sugar/canvas/IconItem.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/sugar/canvas/IconItem.py b/sugar/canvas/IconItem.py index f7626151..dcc65cdb 100644 --- a/sugar/canvas/IconItem.py +++ b/sugar/canvas/IconItem.py @@ -240,17 +240,17 @@ class IconItem(goocanvas.ItemSimple, goocanvas.Item): def _button_press_cb(self, view, target, event): self.emit('clicked') - def _start_popup_timeout(self): - self._stop_popup_timeout() + def _start_popdown_timeout(self): + self._stop_popdown_timeout() self._popdown_timeout = gobject.timeout_add(1000, self._popdown) - def _stop_popup_timeout(self): + def _stop_popdown_timeout(self): if self._popdown_timeout > 0: gobject.source_remove(self._popdown_timeout) self._popdown_timeout = 0 def _enter_notify_event_cb(self, view, target, event, canvas): - self._stop_popup_timeout() + self._stop_popdown_timeout() [x1, y1] = canvas.convert_to_pixels(view.get_bounds().x1, view.get_bounds().y1) @@ -272,4 +272,4 @@ class IconItem(goocanvas.ItemSimple, goocanvas.Item): return False def _leave_notify_event_cb(self, view, target, event): - self._start_popup_timeout() + self._start_popdown_timeout()