changeset 1507:bebf73ee38c8

Fix issue of stopping hint when pointer leaving a target state
author Thinker K.F. Li <thinker@codemud.net>
date Mon, 09 May 2011 17:26:31 +0800
parents f185a9d23a30
children 62001d2c89f6
files pyink/FSM_window.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/pyink/FSM_window.py	Mon May 09 17:13:43 2011 +0800
+++ b/pyink/FSM_window.py	Mon May 09 17:26:31 2011 +0800
@@ -1062,13 +1062,12 @@
         def restore_bg(item, evtype, *args):
             if evtype != pybInkscape.PYSPItem.PYB_EVENT_BUTTON_PRESS:
                 if self._candidate_target:
-                    self._candidate_target.hide_selected()
+                    self._candidate_target.stop_hint()
                     self._candidate_target = None
                     pass
                 return
             self._select.deselect()
             window.pop_grabs()
-            window.ungrab_bg()
             pass
         
         window = self._window
@@ -1079,6 +1078,7 @@
         window.ungrab_state()
         window.grab_state(self._handle_select_transition_target)
         self._select.select_state(self._menu_state)
+        self._menu_state.stop_hint()
         pass
 
     def _handle_edit_transition(self, *args):