2009-04-16 Mike Gorse <mgorse@novell.com>
[platform/core/uifw/at-spi2-atk.git] / pyatspi / base.py
index 7adafbb..438f9e5 100644 (file)
@@ -33,7 +33,7 @@ class AccessibleObjectNotAvailable(Exception):
 
 #------------------------------------------------------------------------------
 
-class Enum(int):
+class Enum(uint):
         def __str__(self):
                 return self._enum_lookup[int(self)]
 
@@ -131,6 +131,9 @@ class BaseProxy(object):
         def __ne__(self, other):
                 return not self.__eq__(other)
 
+        def __hash__(self):
+                return hash(self._app_name + self._acc_path)
+
         def get_dbus_method(self, *args, **kwargs):
                 method =  self._dbus_object.get_dbus_method(*args, **kwargs)