Changeset 87
- Timestamp:
- 12/13/07 16:29:55
- Files:
-
- action_groups/trunk/ActionTree.py (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
action_groups/trunk/ActionTree.py
r86 r87 139 139 return None 140 140 model = self.get_model() 141 top = parent_acc_with_role(event.source, pyatspi.ROLE_DIALOG, pyatspi.ROLE_FRAME) 141 top = parent_acc_with_role(event.source, pyatspi.ROLE_DIALOG, 142 pyatspi.ROLE_ALERT, 143 pyatspi.ROLE_FRAME) 142 144 #print '%s %s' % (model.getRootAcc(), top) 143 145 try: … … 226 228 if menu_iter is not None: 227 229 self.get_selection().select_iter(menu_iter) 230 acc = self.get_acc_from_path(model.get_path(menu_iter)) 231 bar = acc.parent # temp hack 232 AccDecorator(bar).clearSelection() 228 233 229 234 def do_action(self): … … 252 257 elif acc.hasRoleIn(pyatspi.ROLE_MENU): 253 258 acc.doAction() 254 #acc.parent.clearSelection()255 259 elif acc.hasRoleIn(pyatspi.ROLE_CHECK_MENU_ITEM): 256 260 acc.toggleSectable()
