Changeset 87

Show
Ignore:
Timestamp:
12/13/07 16:29:55
Author:
slee
Message:

alerts and menu hack

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • action_groups/trunk/ActionTree.py

    r86 r87  
    139139        return None 
    140140      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) 
    142144      #print '%s %s' % (model.getRootAcc(), top) 
    143145      try: 
     
    226228    if menu_iter is not None: 
    227229      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() 
    228233 
    229234  def do_action(self): 
     
    252257      elif acc.hasRoleIn(pyatspi.ROLE_MENU): 
    253258          acc.doAction() 
    254           #acc.parent.clearSelection() 
    255259      elif acc.hasRoleIn(pyatspi.ROLE_CHECK_MENU_ITEM): 
    256260          acc.toggleSectable()