diff options
author | Walter Bender <walter.bender@gmail.com> | 2013-02-23 19:51:56 (GMT) |
---|---|---|
committer | Walter Bender <walter.bender@gmail.com> | 2013-02-23 19:51:56 (GMT) |
commit | de645761885fc04675e53309589c61873041e7f2 (patch) | |
tree | aa555b1aa5f841c4307fb81df0031a605c37aa6d | |
parent | 6dc36f4c3cb8d5bc07afd521daa5aedc55d7cf77 (diff) |
remove deprecated code
-rw-r--r-- | PortfolioActivity.py | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/PortfolioActivity.py b/PortfolioActivity.py index 4872335..d945da3 100644 --- a/PortfolioActivity.py +++ b/PortfolioActivity.py @@ -157,11 +157,7 @@ class PortfolioActivity(activity.Activity): self._set_screen_dpi() self._set_xy_wh() - if hasattr(self, 'get_window') and \ - hasattr(self.get_window(), 'get_cursor'): - self.old_cursor = self.get_window().get_cursor() - else: - self.old_cursor = None + self.old_cursor = self.get_window().get_cursor() self._hw = get_hardware() @@ -1390,18 +1386,13 @@ class PortfolioActivity(activity.Activity): ''' No longer waiting, so restore standard cursor. ''' if not hasattr(self, 'get_window'): return - if hasattr(self.get_window(), 'get_cursor'): - self.get_window().set_cursor(self.old_cursor) - else: - self.get_window().set_cursor( - Gdk.Cursor.new(Gdk.CursorType.LEFT_PTR)) + self.get_window().set_cursor(self.old_cursor) def _waiting_cursor(self): ''' Waiting, so set watch cursor. ''' if not hasattr(self, 'get_window'): return - if hasattr(self.get_window(), 'get_cursor'): - self.old_cursor = self.get_window().get_cursor() + self.old_cursor = self.get_window().get_cursor() self.get_window().set_cursor(Gdk.Cursor.new(Gdk.CursorType.WATCH)) # Serialize |