diff options
author | Walter Bender <walter@sugarlabs.org> | 2014-01-27 02:55:09 (GMT) |
---|---|---|
committer | Walter Bender <walter@sugarlabs.org> | 2014-01-27 02:55:09 (GMT) |
commit | e543668d038fce64576b8750050a7c89d65d65b1 (patch) | |
tree | fa788bd5858083c00244be9018916d88884959cd /turtleblocks.py | |
parent | 30ff5e89db6ac91b6bc49d15f4d2e7984fc0bc0a (diff) |
Alan's patch to fix hover help in GNOME
Diffstat (limited to 'turtleblocks.py')
-rwxr-xr-x | turtleblocks.py | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/turtleblocks.py b/turtleblocks.py index 3483169..fa324ce 100755 --- a/turtleblocks.py +++ b/turtleblocks.py @@ -243,8 +243,7 @@ return %s(self)" % (p, P, P) if hasattr(self, 'client'): if self.client.get_int(self._HOVER_HELP) == 1: - self.hover.set_active(False) - self._do_hover_help_off_cb(None) + self._do_hover_help_off_cb() if not self.client.get_int(self._COORDINATE_SCALE) in [0, 1]: self.tw.coord_scale = 1 else: @@ -748,22 +747,18 @@ Would you like to save before quitting?')) ''' Toggle hover help on/off ''' self.tw.no_help = not self.tw.no_help if self.tw.no_help: - self._do_hover_help_off_cb(None) + self._do_hover_help_off_cb() else: - self._do_hover_help_on_cb(None) + self._do_hover_help_on_cb() - def _do_hover_help_on_cb(self, button): + def _do_hover_help_on_cb(self): ''' Turn hover help on ''' - self.tw.no_help = False self.hover.set_active(True) if hasattr(self, 'client'): self.client.set_int(self._HOVER_HELP, 0) - def _do_hover_help_off_cb(self, button): + def _do_hover_help_off_cb(self): ''' Turn hover help off ''' - if self.tw.no_help: # Debounce - return - self.tw.no_help = True self.tw.last_label = None if self.tw.status_spr is not None: self.tw.status_spr.hide() |