2009-06-09 Mark Doffman <mark.doffman@codethink.co.uk>
authorMark Doffman <mdoff@silver-wind.(none)>
Tue, 9 Jun 2009 08:48:52 +0000 (09:48 +0100)
committerMark Doffman <mdoff@silver-wind.(none)>
Tue, 9 Jun 2009 08:48:52 +0000 (09:48 +0100)
        * pyatspi/*py
          Add a cache refresh method to the desktop object.

pyatspi/applicationcache.py
pyatspi/desktop.py

index 96a9830..2eeb27b 100644 (file)
@@ -233,4 +233,8 @@ class ApplicationCache(object):
                 """
                 return self._connection
 
+        def _refresh(self):
+                self.application_list = []
+                self.application_list.extend(self._app_register.getApplications())
+
 #END----------------------------------------------------------------------------
index f66e75c..ed6a9ee 100644 (file)
@@ -359,6 +359,6 @@ class Desktop(object):
                                                 % (interface, self._acc_path))
 
         def refresh(self):
-                pass
+                self._appcache._refresh()
 
 #END----------------------------------------------------------------------------