Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/TurtleArtActivity.py
diff options
context:
space:
mode:
authorWalter Bender <walter.bender@gmail.com>2012-07-05 01:12:48 (GMT)
committer Walter Bender <walter.bender@gmail.com>2012-07-05 01:12:48 (GMT)
commit061eee41fd5aa8a844745248e941aad3bb6604b9 (patch)
tree04fd399f9a46e3f479d5756982f539329ae42d89 /TurtleArtActivity.py
parent4c5e3ce07482ba4fef02a3e2679dd1e6c87600c0 (diff)
more robust testing for presence of get_cursor
Diffstat (limited to 'TurtleArtActivity.py')
-rw-r--r--TurtleArtActivity.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/TurtleArtActivity.py b/TurtleArtActivity.py
index 778a7ad..0abf820 100644
--- a/TurtleArtActivity.py
+++ b/TurtleArtActivity.py
@@ -871,7 +871,7 @@ class TurtleArtActivity(activity.Activity):
else: # ...or else, load a Start Block onto the canvas.
self.tw.load_start()
- if self.has_toolbarbox:
+ if hasattr(self.get_window(), 'get_cursor'):
self._old_cursor = self.get_window().get_cursor()
self.copying = False
self.sharing_blocks = False
@@ -1108,7 +1108,7 @@ in order to use the plugin.'))
''' No longer copying or sharing, so restore standard cursor. '''
self.copying = False
self.sharing_blocks = False
- if self.has_toolbarbox:
+ if hasattr(self.get_window(), 'get_cursor'):
self.get_window().set_cursor(self._old_cursor)
def _copy_cb(self, button):
@@ -1117,7 +1117,7 @@ in order to use the plugin.'))
self.restore_cursor()
else:
self.copying = True
- if self.has_toolbarbox:
+ if hasattr(self.get_window(), 'get_cursor'):
self._old_cursor = self.get_window().get_cursor()
self.get_window().set_cursor(gtk.gdk.Cursor(gtk.gdk.HAND1))
@@ -1156,7 +1156,7 @@ in order to use the plugin.'))
self.restore_cursor()
else:
self.sharing_blocks = True
- if self.has_toolbarbox:
+ if hasattr(self.get_window(), 'get_cursor'):
self._old_cursor = self.get_window().get_cursor()
self.get_window().set_cursor(gtk.gdk.Cursor(gtk.gdk.HAND1))