Changeset 148
- Timestamp:
- 06/30/08 18:30:11
- Files:
-
- trunk/src/atspi.py (modified) (1 diff)
- trunk/src/jambu/ActionModel.py (modified) (1 diff)
- trunk/src/jambu/InAppSelection.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/src/atspi.py
r97 r148 40 40 idle_add(printEvent) 41 41 42 def _onKeyDown(event): 43 print event; 44 42 45 EVENTS = ('document', 'focus', 'object', 'window', 'terminal') 43 46 pyatspi.Registry.registerEventListener(eventCallback, *EVENTS) 47 48 masks = [mask for mask in pyatspi.allModifiers()] 49 pyatspi.Registry.registerKeystrokeListener( 50 _onKeyDown, 51 mask = None, 52 kind=(pyatspi.KEY_PRESSED_EVENT,)) 53 44 54 45 55 try: trunk/src/jambu/ActionModel.py
r129 r148 98 98 99 99 def _isInteractive(self, acc): 100 if acc.hasRoleIn(pyatspi.ROLE_SEPARATOR ) \100 if acc.hasRoleIn(pyatspi.ROLE_SEPARATOR, pyatspi.ROLE_INTERNAL_FRAME) \ 101 101 or ((acc.hasRoleIn(pyatspi.ROLE_MENU) and acc.parent.getRole() == pyatspi.ROLE_COMBO_BOX)) \ 102 102 or not acc.hasStates(pyatspi.STATE_SHOWING, pyatspi.STATE_VISIBLE, pyatspi.STATE_SENSITIVE): trunk/src/jambu/InAppSelection.py
r126 r148 110 110 pass # not expected 111 111 PumpQueuedEvents(pyatspi.Registry()) 112 #pyatspi.Registry.pumpQueuedEvents(); # should be ok now but stops menues working 112 113 return True # keep this function in idle processing 113 114 gobject.idle_add(_onIdle)
