Fix traceback on focus changes

This commit is contained in:
Dan Williams
2006-06-07 12:22:28 -04:00
parent 55d863fc71
commit f7cd0939c4
4 changed files with 5 additions and 11 deletions
+1 -2
View File
@@ -2,5 +2,4 @@ sugardir = $(pythondir)/sugar/shell
sugar_PYTHON = \
__init__.py \
activity.py \
shell.py \
PresenceWindow.py
shell.py
+1 -1
View File
@@ -246,7 +246,7 @@ class Activity(object):
"""Marks this Activity as having changes. This usually means
that this Activity's tab turns a red color or something else
to notify the user that this Activity needs attention."""
if not self.get_has_focus() and has_changes:
if not self.has_focus() and has_changes:
self._activity_object.set_has_changes(True)
else:
self._activity_object.set_has_changes(False)