Index: orca/src/orca/scripts/gaim.py
===================================================================
RCS file: /cvs/gnome/orca/src/orca/scripts/gaim.py,v
retrieving revision 1.25
diff -p -u -r1.25 gaim.py
--- orca/src/orca/scripts/gaim.py	19 Oct 2006 18:16:54 -0000	1.25
+++ orca/src/orca/scripts/gaim.py	19 Dec 2006 21:28:04 -0000
@@ -39,6 +39,7 @@ import orca.debug as debug
 import orca.default as default
 import orca.input_event as input_event
 import orca.keybindings as keybindings
+import orca.orca as orca
 import orca.rolenames as rolenames
 import orca.settings as settings
 import orca.speech as speech
@@ -340,3 +341,21 @@ class Script(default.Script):
             # default way.
             #
             default.Script.onTextInserted(self, event)
+
+    def onStateChanged(self, event):
+        """Called whenever an object's state changes.
+
+        Arguments:
+        - event: the Event
+        """
+
+        # [[[TODO: WDW - we hack here because GAIM 2.0.0beta5 has
+        # done something to horribly break the way tables are exposed
+        # via the AT-SPI.]]]
+        #
+        if event.type == "object:state-changed:selected" \
+           and event.detail1 \
+           and event.source.name:
+            orca.setLocusOfFocus(event, event.source)
+        else:
+            default.Script.onStateChanged(self, event)
