ObjectChooser: remove deprecated parameters
The objectchooser had the 'title', 'flags' and 'buttons' parameters deprecated for a long time, remove them now completely. The only parameters allowed are now the 'parent' and the 'what_filter'. Signed-off-by: Simon Schampijer <simon@laptop.org> Reviewed-by: Gonzalo Odiard <gonzalo@laptop.org> Acked-by: Daniel Drake <dsd@laptop.org>
This commit is contained in:
		
							parent
							
								
									aae6082b14
								
							
						
					
					
						commit
						417006e463
					
				| @ -36,16 +36,7 @@ J_DBUS_PATH = '/org/laptop/Journal' | ||||
| 
 | ||||
| class ObjectChooser(object): | ||||
| 
 | ||||
|     def __init__(self, title=None, parent=None, flags=None, buttons=None, | ||||
|                  what_filter=None): | ||||
|         # For backwards compatibility: | ||||
|         # - We ignore title, flags and buttons. | ||||
|         # - 'parent' can be a xid or a Gtk.Window | ||||
| 
 | ||||
|         if title is not None or flags is not None or buttons is not None: | ||||
|             logging.warning('Invocation of ObjectChooser() has deprecated ' | ||||
|                             'parameters.') | ||||
| 
 | ||||
|     def __init__(self, parent=None, what_filter=None): | ||||
|         if parent is None: | ||||
|             parent_xid = 0 | ||||
|         elif hasattr(parent, 'get_window') and hasattr(parent.get_window(), | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Simon Schampijer
						Simon Schampijer