=== 2.9.2 === 2004-12-26 Gustavo J. A. M. Carneiro * NEWS: Update. * examples/vfs/async.py: Add a file control test. * gnomevfs/vfs-async-handle.c (async_pass): Not used, remove. (pygvfs_async_file_control): Wrap gnome_vfs_async_file_control, as method 'control' of gnomevfs.async.Handle. * examples/vfs/async.py: Call gnomevfs.async.find_directory. * gnomevfs/vfs-async-handle.c (pygvhandle_dealloc): Do not automatically close the handle on dealloc. Rationale is provided in a code comment (basically to avoid accidental programming errors). (pygvfs_async_xfer_progress_callback): Now we can pass the handle to the callback. * gnomevfs/vfsmodule.c (register_constants): Register GNOME_VFS_DIRECTORY_KIND_* constants. * gnomevfs/vfs-async-handle.c (pygvfs_async_find_directory): Impl. wrapper for gnomevfs.async.find_directory(). 2004-12-25 Gustavo J. A. M. Carneiro * gnomevfs/vfs-async-handle.c (pygvfs_async_xfer_progress_callback): Free callback function/data references and memory when the stage reaches GNOME_VFS_XFER_PHASE_COMPLETED. * Makefile.am (EXTRA_DIST): Add sync-xfer.py example. * examples/vfs/async-xfer.py: Example for gnomevfs.async.xfer. * gnomevfs/vfs-async-handle.c (pygvfs_async_xfer_progress_callback): PyErr_Print() when python callback returns NULL. (pygvfs_async_xfer): INCREF both callbacks. * gnomevfs/vfsmodule.c (pygvfs_xfer_progress_callback): PyErr_Print() when python callback returns NULL. * gnomevfs/vfs-async-handle.c: Fix name of function, should be 'xfer' instead of 'async_xfer'. * Makefile.am (EXTRA_DIST): Add sync-xfer.py example. * examples/vfs/sync-xfer.py: An example of gnomevfs.xfer_uri. 2004-12-24 Gustavo J. A. M. Carneiro * gnomevfs/vfsmodule.c: Wrappers for escape_string, escape_path_string, escape_host_and_path_string, escape_slashes, escape_set, unescape_string, make_uri_canonical, make_path_name_canonical, unescape_string_for_display, get_local_path_from_uri, get_uri_from_local_path, is_executable_command_string, get_volume_free_space, icon_path_from_filename, open_fd, is_primary_thread, format_uri_for_display, make_uri_from_input, make_uri_from_input_with_dirs, uris_match, get_uri_scheme, make_uri_from_shell_arg, and gnome_vfs_url_show_with_env. Fixes #161942. * gnomevfs/vfs-async-handle.c (pygvfs_async_xfer): Add wrapper for gnome_vfs_async_transfer. Partially fixes #161860. * gnomevfs/vfsmodule.c (pygvfs_xfer_progress_callback): Print the generated exception at this point, otherwise the user will never see it. Also call pyg_gil_state_release in error return path. Release reference to newly created py_info object, fixes a reference leak. 2004-12-22 Gustavo J. A. M. Carneiro * gnomevfs/vfsmodule.c (pygvfs_xfer_progress_callback): Make non-static to access from vfs-async-handle.c. (_pygvfs_uri_sequence_to_glist): idem. 2004-12-21 Gustavo J. A. M. Carneiro * gnomevfs/vfsmodule.c (pygvfs_xfer_uri): Allow callback to be None or omitted if error_mode != GNOME_VFS_XFER_ERROR_MODE_QUERY. (pygvfs_xfer_uri_list): idem. (pygvfs_xfer_delete_list): idem. Fixes #161738 (gnome.vfs.xfer_uri() requires a callback in Python but the C API doesn't) 2004-12-18 Gustavo J. A. M. Carneiro * examples/vfs/async.py: s/exception/exc_type/, to make it clear that the passed exception parameters are exception types, not values. (create_callback): Check for gnomevfs.AccessDeniedError. * gnomevfs/vfsmodule.c (pygvfs_read_entire_file): Add pyg_begin|end_allow_threads around vfs call. (pygvfs_create): idem. (pygvfs_get_file_info): idem. (pygvfs_set_file_info): idem. (pygvfs_make_directory): idem. (pygvfs_remove_directory): idem. (pygvfs_unlink): idem. (pygvfs_exists): idem. (pygvfs_get_mime_type): idem. (pygvfs_get_mime_type_for_data): idem. (pygvfs_monitor_add): idem. (pygvfs_xfer_uri): idem. (pygvfs_xfer_uri_list): idem. (pygvfs_xfer_delete_list): idem. (pygvfs_xfer_progress_callback): Add missing pyg_gil_state_ensure|release(). 2004-12-14 Gustavo J. A. M. Carneiro * bonobo/bonobo.override (_wrap_bonobo_get_object_async): impl. 2004-12-13 Gustavo J. A. M. Carneiro * bonobo/activationmodule.c (wrap_ba_activate_from_id): Return tuple (object, AID) when 3rd argument is present and is true, otherwise continue returning just the object. (wrap_ba_activate_async): Impl. 2004-12-12 Gustavo J. A. M. Carneiro * gconf/gconf.override: Ignore gconf_client_change_set_from_currentv and gconf_value_set_list_nocopy. Wrap gconf_client_change_set_from_current. (_wrap_gconf_change_set_set_list): Impl. * gconf/gconf.defs (ChangeSet): Add boxed type GConfChangeSet. * gconf/gconf.override (_wrap_gconf_value_set_list): impl, adds wrapper for gconf.Value.set_list. * configure.in: Require pygtk 2.5.1 for the new GTime argtype used in gconf (gconf.MetaInfo.mod_time). Bump version 2.9.2. 2004-12-04 Gustavo J. A. M. Carneiro * gnome/gnome.override (_wrap_gnome_program_locate_file): Add. (_wrap_gnome_bonobo_module_info_get): Override to get rid of const warning. (_wrap_gnome_program_module_load): Override to get rid of const warning.