Index: dogtail/tree.py
===================================================================
RCS file: /cvs/gnome/dogtail/dogtail/tree.py,v
retrieving revision 1.23
diff -a -u -r1.23 tree.py
--- dogtail/tree.py	24 Feb 2006 19:50:52 -0000	1.23
+++ dogtail/tree.py	30 Mar 2006 01:28:21 -0000
@@ -368,6 +368,17 @@
 		if hypertext is not None:
 			self.__hypertext = hypertext
 
+		selection = self.__accessible.getSelection()
+		if selection is not None:
+			self.__selection = selection
+			self.getNSelectedChildren = self.__selection.getNSelectedChildren 
+			self.getSelectedChild = self.__selection.getSelectedChild
+			self.selectChild = self.__selection.selectChild
+			self.deselectSelectedChild = self.__selection.deselectSelectedChild
+			self.isChildSelected = self.__selection.isChildSelected
+			self.selectAll = self.__selection.selectAll
+			self.clearSelection = self.__selection.clearSelection 
+
 		# Add more objects here. Nobody uses them yet, so I haven't.
 		# You also need to change the __getattr__ and __setattr__ functions.
 
