Convert more string-named properties to var-named

This commit is contained in:
Dan Williams 2007-04-20 12:40:53 -04:00
parent e46d31e0f4
commit 2866d3c4c9

View File

@ -91,7 +91,7 @@ class Buddy(DBusGObject):
self._nick = None
self._color = None
if not kwargs.get("key"):
if not kwargs.get(_PROP_KEY):
raise ValueError("key required")
_ALLOWED_INIT_PROPS = [_PROP_NICK, _PROP_KEY, _PROP_ICON, _PROP_CURACT, _PROP_COLOR]
@ -380,7 +380,7 @@ class ShellOwner(GenericOwner):
if not self._activities.has_key(activity_id):
# This activity is local-only
activity_id = None
props = {'current-activity': activity_id}
props = {_PROP_CURACT: activity_id}
self.set_properties(props)