Changeset 126
- Timestamp:
- 01/18/08 11:30:59
- Files:
-
- inapp/trunk/ChangeLog (modified) (2 diffs)
- inapp/trunk/src/jambu/ActionBrowser.py (modified) (2 diffs)
- inapp/trunk/src/jambu/InAppSelection.py (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
inapp/trunk/ChangeLog
r124 r126 1 2008-01-18 r125-6 SteveLee <steve@fullmeasure.co.uk> 2 3 * removed need for patched pyatspi with Registry.PumpQueuedEvents 4 * added cmdline override of highlight selection 5 1 6 2008-01-16 r122-3 SteveLee <steve@fullmeasure.co.uk> 2 7 3 8 * gail fixes 4 * improved highlight 9 * improved highlight 5 10 6 11 2008-01-16 r121 SteveLee <steve@fullmeasure.co.uk> … … 13 18 14 19 * enabled pyatspi queuing of events 20 21 2008-01-08 r117 SteveLee <steve@fullmeasure.co.uk> 22 23 * release 0.0.3 15 24 16 25 2007-12-21 SteveLee <steve@fullmeasure.co.uk> inapp/trunk/src/jambu/ActionBrowser.py
r113 r126 58 58 self._show_tree_view = kwargs['show_tree'] 59 59 self._scan = kwargs['scan'] 60 self._hilight = kwargs['hilight'] 60 61 # transparent background if pos 61 62 win = self.get_toplevel() … … 185 186 186 187 def highlight(self, extents, type): 187 if self.supports_alpha: 188 if self._hilight=='svg' \ 189 or (self._hilight=='auto' and self.supports_alpha): 188 190 self.killHighlight() 189 191 hl_factory = (ExitGroupHighLight if type==HIGHLIGHT_EXIT else ActionHighLight) inapp/trunk/src/jambu/InAppSelection.py
r125 r126 23 23 '''The application''' 24 24 def _getArgs(self): 25 show_tree = scan = False 26 appl = None 25 args =dict(show_tree = False, 26 scan = False, 27 app = None, 28 hilight = 'auto') 27 29 for arg in sys.argv[1:]: 28 30 if arg == '--noshowtree': 29 show_tree= False31 args['show_tree'] = False 30 32 elif arg == '--showtree': 31 show_tree= True33 args['show_tree'] = True 32 34 elif arg == '--scan': 33 scan = True 35 args['scan'] = True 36 elif arg == '--blink': 37 args['hilight']='blink' 38 elif arg == '--svg': 39 args['hilight']='svg' 34 40 elif not arg.startswith('--') and len(arg) > 2: 35 a ppl= arg41 args['app'] = arg 36 42 37 if a pplis None:43 if args['app'] is None: 38 44 print """Useage 39 45 ------ … … 41 47 --scan start auto scanning, otherwise manual 42 48 --showtree show the GTKTreeView of accesible objects and other UI 49 --blink blinking highlight, default is auto detect 50 --svg svg highlight (requires transparency), default is auto detect 43 51 44 52 Make sure gedit/minefield is already open and make it the active application … … 46 54 """ 47 55 sys.exit() 48 return show_tree, scan, appl56 return args 49 57 50 58 def __init__(self): 51 59 # create top level window 52 show_tree, scan, appl= self._getArgs()53 self.window = ActionBrowser.ActionBrowser( app=appl, scan=scan, show_tree=show_tree)60 args = self._getArgs() 61 self.window = ActionBrowser.ActionBrowser(**args) 54 62 self.window.connect('delete_event', self.onDeleteEvent) 55 63
