summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Move the progress callback for move/copy so it's consistent with theJohan Dahlin2008-08-063-6/+15
| | | | | | | | | | | | 2008-08-06 Johan Dahlin <johan@gnome.org> * gio/gfile.override: * gio/gio.defs: Move the progress callback for move/copy so it's consistent with the documentation and positional arguments. Update documentation as well svn path=/trunk/; revision=928
* Add a pygobject_enable_threads wrapper around pyglib_threads_enable andJohan Dahlin2008-08-063-8/+31
| | | | | | | | | | | | | 2008-08-06 Johan Dahlin <johan@gnome.org> * glib/pyglib.c (pyglib_enable_threads): * gobject/gobjectmodule.c (pyg_threads_init), (pygobject_enable_threads): Add a pygobject_enable_threads wrapper around pyglib_threads_enable and return 0/-1 which existing gobject based applications expect. svn path=/trunk/; revision=927
* return in case of error instead of trying to access the internal types.Johan Dahlin2008-08-062-1/+10
| | | | | | | | | | | 2008-08-06 Johan Dahlin <johan@gnome.org> * glib/pyglib.c (pyglib_init): return in case of error instead of trying to access the internal types. svn path=/trunk/; revision=926
* Add 'pygio_do_icon_richcompare' prototype to header.Paul Pogonyshev2008-08-052-2/+11
| | | | | | | | | | | 2008-08-06 Paul Pogonyshev <pogonyshev@gmx.net> * gio/gio.override: Add 'pygio_do_icon_richcompare' prototype to header. (_wrap_g_file_icon_tp_repr, _wrap_g_themed_icon_tp_repr): Fix return value type in signature. svn path=/trunk/; revision=925
* Bug 546135 – GIcon and implementations improvementsPaul Pogonyshev2008-08-053-0/+146
| | | | | | | | | | | | | | | | | 2008-08-05 Paul Pogonyshev <pogonyshev@gmx.net> Bug 546135 – GIcon and implementations improvements * gio/gio-types.defs (FileIcon): New 'define-object'. * gio/gio.override (pygio_do_icon_richcompare) (_wrap_g_icon_tp_richcompare, _wrap_g_icon_tp_hash) (_wrap_g_file_icon_tp_richcompare, _wrap_g_file_icon_tp_hash) (_wrap_g_file_icon_tp_repr, _wrap_g_themed_icon_tp_richcompare) (_wrap_g_themed_icon_tp_hash, _wrap_g_themed_icon_tp_repr): New functions. svn path=/trunk/; revision=924
* Wrap GFile.replace_async and query_info_async with docs and test.Gian Mario Tagliaretti2008-08-034-2/+181
| | | | svn path=/trunk/; revision=923
* Change return value from 'gboolean' to 'int' and changed semantics toPaul Pogonyshev2008-08-034-8/+18
| | | | | | | | | | | | | | 2008-08-03 Paul Pogonyshev <pogonyshev@gmx.net> * glib/pyglib.h: * glib/pyglib.c (pyglib_enable_threads): Change return value from 'gboolean' to 'int' and changed semantics to Pythonic: restores backwards compatibility. * gobject/gobjectmodule.c (pyg_threads_init): Treat return value accordingly (bug #544946). svn path=/trunk/; revision=922
* Fix a copy/paste pattern...Gian Mario Tagliaretti2008-08-021-42/+0
| | | | svn path=/trunk/; revision=921
* Wrap GFile.create_async with docs and testGian Mario Tagliaretti2008-08-024-1/+143
| | | | svn path=/trunk/; revision=920
* More cleanups.Johan Dahlin2008-08-021-33/+38
| | | | svn path=/trunk/; revision=919
* PEP8ifyJohan Dahlin2008-08-021-69/+78
| | | | svn path=/trunk/; revision=918
* More refactoring. Avoid duplication, add xml string templatesJohan Dahlin2008-08-021-67/+62
| | | | svn path=/trunk/; revision=917
* Do not include gio-types.defsJohan Dahlin2008-08-021-2/+0
| | | | svn path=/trunk/; revision=916
* further cleanupsJohan Dahlin2008-08-021-243/+255
| | | | svn path=/trunk/; revision=915
* Remove SGML support, require python 2.4, modernize, PEP-8ify. Make it runJohan Dahlin2008-08-024-108/+119
| | | | | | | | | | | | | | | | | 2008-08-02 Johan Dahlin <johan@gnome.org> * codegen/docgen.py: Remove SGML support, require python 2.4, modernize, PEP-8ify. Make it run on gio. * codegen/definitions.py: Make property iterable * gio/gio.defs: Include the gio-types.defs file. svn path=/trunk/; revision=914
* Fix compilation warnings, clean up style and indentation.Johan Dahlin2008-08-024-87/+112
| | | | | | | | | | | | | | | | | | 2008-08-02 Johan Dahlin <johan@gnome.org> * glib/glibmodule.c (pyglib_set_prgname): * glib/pygoptioncontext.c (pyg_option_context_init), (pyg_option_context_set_help_enabled), (pyg_option_context_set_ignore_unknown_options), (pyg_option_context_set_main_group), (pyg_option_context_add_group): * glib/pygoptiongroup.c (arg_func), (pyg_option_group_add_entries), (pyg_option_group_set_translation_domain), (pyg_option_group_compare), (pyglib_option_group_register_types): Fix compilation warnings, clean up style and indentation. svn path=/trunk/; revision=913
* Wrap GFile.append_to_async with docs and testGian Mario Tagliaretti2008-08-024-1/+101
| | | | svn path=/trunk/; revision=912
* Add pyglib_float_from_timeval and use itJohan Dahlin2008-08-026-7/+29
| | | | | | | | | | | | | | 2008-08-02 Johan Dahlin <johan@gnome.org> * gio/gfileinfo.override: * gio/gio.override: * glib/glibmodule.c (pyglib_get_current_time): * glib/pyglib.c (pyglib_float_from_timeval): * glib/pyglib.h: Add pyglib_float_from_timeval and use it svn path=/trunk/; revision=911
* Separate the glib and gobject bindings in the manual.Johan Dahlin2008-08-019-932/+1145
| | | | | | | | | | | | | | | | | | | 2008-08-02 Johan Dahlin <johan@gnome.org> * docs/Makefile.am: * docs/reference/pyglib-constants.xml: * docs/reference/pyglib-functions.xml: * docs/reference/pyglib-maincontext.xml: * docs/reference/pyglib-mainloop.xml: * docs/reference/pygobject-classes.xml: * docs/reference/pygobject-constants.xml: * docs/reference/pygobject-functions.xml: * docs/reference/pygobject-maincontext.xml: * docs/reference/pygobject-mainloop.xml: Separate the glib and gobject bindings in the manual. svn path=/trunk/; revision=910
* Wrap GFile.query_writable_namespaces with docs and testGian Mario Tagliaretti2008-08-014-1/+70
| | | | svn path=/trunk/; revision=909
* Wrap gio.File.moveJohan Dahlin2008-08-013-1/+75
| | | | | | | | | | | | 2008-08-02 Johan Dahlin <johan@gnome.org> * gio/gio.defs: * gio/gfile.override: * tests/test_gio.py: Wrap gio.File.move svn path=/trunk/; revision=908
* Wrap gio.Volume.mount and gio.Volume.ejectJohan Dahlin2008-08-016-5/+243
| | | | | | | | | | | | | | 2008-08-02 Johan Dahlin <johan@gnome.org> * gio/Makefile.am: * gio/gfile.override: * gio/gio.defs: * gio/gio.override: * gio/gvolume.override: Wrap gio.Volume.mount and gio.Volume.eject svn path=/trunk/; revision=907
* Add docstring for gio.FileInfo.list_attributesGian Mario Tagliaretti2008-08-012-0/+9
| | | | svn path=/trunk/; revision=906
* Bug 545861 – g_file_info_get_modification_time is missingJohan Dahlin2008-08-014-4/+34
| | | | | | | | | | | | | 2008-08-01 Johan Dahlin <johan@gnome.org> Bug 545861 – g_file_info_get_modification_time is missing * gio/gfileinfo.override: * gio/gio.defs: * tests/test_gio.py: Wrap, add test and documentation svn path=/trunk/; revision=905
* Bug 545846 – g_vfs_get_supported_uri_schemes is missingJohan Dahlin2008-08-014-0/+47
| | | | | | | | | | | | | | 2008-08-01 Johan Dahlin <johan@gnome.org> Bug 545846 – g_vfs_get_supported_uri_schemes is missing * gio/gio.defs: * gio/gio.override: * tests/test_gio.py: Wrap, add test and documentation svn path=/trunk/; revision=904
* Use %r instead of %s, this is not python!Johan Dahlin2008-08-012-1/+6
| | | | | | | | | | 2008-08-01 Johan Dahlin <johan@gnome.org> * glib/glibmodule.c (pyglib_set_application_name): Use %r instead of %s, this is not python! svn path=/trunk/; revision=903
* Use METH_O instead of METH_VARARGS. (_glib_functions): Add doc strings forJohan Dahlin2008-07-302-37/+94
| | | | | | | | | | | | | 2008-07-31 Johan Dahlin <johan@gnome.org> * glib/glibmodule.c (pyglib_set_prgname) (pyglib_set_application_name): Use METH_O instead of METH_VARARGS. (_glib_functions): Add doc strings for idle_add, timeout_add, timeout_add_seconds, io_add_watch, child_watch_add, source_remove, main_depth and main_context_default. svn path=/trunk/; revision=902
* Wrap new object gio.FileAttributeInfo, g_file_set_attribute and ↵Gian Mario Tagliaretti2008-07-297-37/+331
| | | | | | g_file_query_settable_attributes methods. svn path=/trunk/; revision=901
* WhitespaceJohan Dahlin2008-07-291-0/+1
| | | | svn path=/trunk/; revision=900
* Take some creditJohan Dahlin2008-07-292-0/+3
| | | | svn path=/trunk/; revision=899
* Wrap g_app_info_launch_uris, g_app_info_launch, ↵Gian Mario Tagliaretti2008-07-299-116/+448
| | | | | | g_app_launch_context_get_display and g_app_launch_context_get_startup_notify_id svn path=/trunk/; revision=898
* Add gio.FILE_ATTRIBUTE_* constants and update the examples to use them.Johan Dahlin2008-07-293-2/+139
| | | | | | | | | | | 2008-07-29 Johan Dahlin <johan@gnome.org> * examples/gio/downloader.py: * gio/giomodule.c (init_gio): Add gio.FILE_ATTRIBUTE_* constants and update the examples to use them. svn path=/trunk/; revision=897
* Fetch the total and print percentageJohan Dahlin2008-07-291-3/+8
| | | | svn path=/trunk/; revision=896
* Remove unused importJohan Dahlin2008-07-291-1/+1
| | | | svn path=/trunk/; revision=895
* Refactor the example a bit, use start/stop to access loop so it's easier to ↵Johan Dahlin2008-07-291-12/+19
| | | | | | reuse it in a real application svn path=/trunk/; revision=894
* Handle errors from gfile.read() gracefullyJohan Dahlin2008-07-291-3/+6
| | | | svn path=/trunk/; revision=893
* Add a new exampleJohan Dahlin2008-07-283-9/+83
| | | | | | | | | | | | | | | 2008-07-29 Johan Dahlin <johan@gnome.org> * examples/gio/downloader.py: Add a new example * gio/ginputstream.override: Use a string internally instead of a PyStringObject when in read_async. Create a new python string in finish and honor the number of bytes read. svn path=/trunk/; revision=892
* add a py-compile which works on python 2.x and 3.xJohan Dahlin2008-07-281-0/+146
| | | | svn path=/trunk/; revision=891
* Move all compatibility into the same place, fixes build on python 2.4.Johan Dahlin2008-07-283-27/+30
| | | | | | | | | | | | 2008-07-28 Johan Dahlin <johan@gnome.org> * glib/pyglib-python-compat.h: * gobject/pygobject-private.h: Move all compatibility into the same place, fixes build on python 2.4. svn path=/trunk/; revision=890
* Use hexversion so it works with alpha/beta releasesJohan Dahlin2008-07-281-2/+8
| | | | svn path=/trunk/; revision=889
* Remove unnecessary spacingJohan Dahlin2008-07-281-2/+2
| | | | svn path=/trunk/; revision=888
* Remove tabs. Use sys.exc_info()[1] to fetch the exception valueJohan Dahlin2008-07-277-40/+72
| | | | | | | | | | | | | | | | | | | 2008-07-27 Johan Dahlin <johan@gnome.org> * glib/option.py: Remove tabs. Use sys.exc_info()[1] to fetch the exception value * gobject/__init__.py: * gobject/propertyhelper.py: Import gobject._gobject instead of just gobject. * gobject/Makefile.am: * gobject/constants.py.in: * gobject/generate-constants.c (main): Don't add long suffix if python >= 3.0 svn path=/trunk/; revision=887
* Use the Py_TYPE macro everywhere.Johan Dahlin2008-07-2710-30/+57
| | | | | | | | | | | | | | | | | | | | | | | | | | | 2008-07-27 Johan Dahlin <johan@gnome.org> * glib/pyglib-python-compat.h: * gobject/gobjectmodule.c (pyg_object_new), (pyg__install_metaclass): * gobject/pygboxed.c (pyg_boxed_dealloc), (pyg_boxed_init), (pyg_register_boxed): * gobject/pygenum.c (pyg_enum_reduce): * gobject/pyginterface.c (pyg_interface_init), (pyg_register_interface): * gobject/pygobject.c (pygobject_get_inst_data), (pygobject_register_class), (pygobject_new_with_interfaces), (pygobject_dealloc), (pygobject_repr), (pygobject_emit), (pygobject_chain_from_overridden), (pygobject_weak_ref_notify): * gobject/pygparamspec.c (pygobject_paramspec_register_types): * gobject/pygpointer.c (pyg_pointer_dealloc), (pyg_pointer_init), (pyg_register_pointer): * gobject/pygtype.c (pyg_type_from_object), (pyg_value_array_from_pyobject), (pyg_value_from_pyobject), (pyg_object_descr_doc_get): Use the Py_TYPE macro everywhere. svn path=/trunk/; revision=886
* Add a Py_TYPE macro for accessing ob_type.Johan Dahlin2008-07-276-28/+56
| | | | | | | | | | | | | | | | | | | | | 2008-07-27 Johan Dahlin <johan@gnome.org> * glib/pyglib-python-compat.h: Add a Py_TYPE macro for accessing ob_type. * glib/glibmodule.c (pyglib_register_constants): * gobject/gobjectmodule.c (pygobject__g_instance_init), (pyg_integer_richcompare): * gobject/pygenum.c (pyg_enum_repr), (pyg_enum_from_gtype), (pyg_enum_add), (pyg_enum_get_value_name), (pyg_enum_get_value_nick): * gobject/pygflags.c (pyg_flags_repr), (pyg_flags_from_gtype), (pyg_flags_add), (pyg_flags_and), (pyg_flags_or), (pyg_flags_xor), (pyg_flags_get_first_value_name), (pyg_flags_get_first_value_nick), (pyg_flags_get_value_names), (pyg_flags_get_value_nicks): Use Py_TYPE and PyLong macros to access struct fields svn path=/trunk/; revision=885
* Use _PyLong macros.Johan Dahlin2008-07-278-66/+88
| | | | | | | | | | | | | | | | | | | | | | | | | | | 2008-07-27 Johan Dahlin <johan@gnome.org> * gobject/gobjectmodule.c (pyg_param_spec_from_object), (add_properties), (pyg_signal_new), (pyg_signal_list_ids), (pyg_signal_lookup), (pyg_signal_query): * gobject/pygenum.c (pyg_enum_richcompare), (pyg_enum_new), (pyg_enum_from_gtype), (pyg_enum_add), (pyg_enum_reduce), (pygobject_enum_register_types): * gobject/pygflags.c (pyg_flags_richcompare), (pyg_flags_new), (pyg_flags_from_gtype), (pyg_flags_add), (pyg_flags_and), (pyg_flags_or), (pyg_flags_xor), (pygobject_flags_register_types): * gobject/pygobject-private.h: * gobject/pygobject.c (pygobject_disconnect_by_func), (pygobject_handler_block_by_func), (pygobject_handler_unblock_by_func), (pygobject_get_refcount): * gobject/pygparamspec.c (pyg_param_spec_getattr): * gobject/pygtype.c (_wrap_g_type_wrapper__get_depth), (pyg_type_from_object), (pyg_enum_get_value), (pyg_flags_get_value), (pyg_value_from_pyobject), (pyg_value_as_pyobject): Use _PyLong macros. svn path=/trunk/; revision=884
* Use PYGLIB_DEFINE_TYPE macro and move struct field initialization to theJohan Dahlin2008-07-278-496/+142
| | | | | | | | | | | | | | | | | 2008-07-27 Johan Dahlin <johan@gnome.org> * gobject/pygboxed.c (pygobject_boxed_register_types): * gobject/pygenum.c (pygobject_enum_register_types): * gobject/pygflags.c (pygobject_flags_register_types): * gobject/pygobject.c (pygobject_object_register_types): * gobject/pygparamspec.c (pygobject_paramspec_register_types): * gobject/pygpointer.c (pygobject_pointer_register_types): * gobject/pygtype.c (pygobject_type_register_types): Use PYGLIB_DEFINE_TYPE macro and move struct field initialization to the registration methods. svn path=/trunk/; revision=883
* Add _PyUnicode_Type macroJohan Dahlin2008-07-2710-78/+118
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2008-07-27 Johan Dahlin <johan@gnome.org> * glib/pyglib-python-compat.h: Add _PyUnicode_Type macro * gobject/gobjectmodule.c (pyg_type_name), (pyg_type_from_name), (_pyg_signal_accumulator), (add_signals), (add_properties), (get_type_name_for_class), (pyg_signal_list_names), (pyg_signal_name), (pyg_signal_query), (pyg_object_new), (pyg_add_emission_hook), (pyg_remove_emission_hook): * gobject/pygboxed.c (pyg_boxed_repr): * gobject/pygenum.c (pyg_enum_repr), (pyg_enum_add), (pyg_enum_get_value_name), (pyg_enum_get_value_nick): * gobject/pygflags.c (pyg_flags_repr), (pyg_flags_add), (pyg_flags_get_first_value_name), (pyg_flags_get_first_value_nick), (pyg_flags_get_value_names), (pyg_flags_get_value_nicks): * gobject/pygobject.c (build_parameter_list), (PyGProps_getattro), (PyGProps_setattro), (pygobject_register_class), (pygobject_repr), (pygobject_init), (pygobject_get_properties), (pygobject_set_properties), (pygobject_connect), (pygobject_connect_after), (pygobject_connect_object), (pygobject_connect_object_after), (pygobject_emit), (pygobject_stop_emission), (pygobject_disconnect_by_func), (pygobject_handler_block_by_func), (pygobject_handler_unblock_by_func), (pygobject_object_register_types): * gobject/pygparamspec.c (pyg_param_spec_repr), (pyg_param_spec_getattr): * gobject/pygpointer.c (pyg_pointer_repr): * gobject/pygtype.c (pyg_type_wrapper_repr), (_wrap_g_type_wrapper__get_name), (pyg_type_from_object), (pyg_enum_get_value), (pyg_flags_get_value), (pyg_value_from_pyobject), (pyg_value_as_pyobject), (object_doc_descr_get), (_pyg_strv_from_gvalue), (_pyg_strv_to_gvalue): Use _PyUnicode_* macros in the gobject module svn path=/trunk/; revision=882
* Use glib macros to define the module, update export regexp.Johan Dahlin2008-07-274-9/+16
| | | | | | | | | | | | 2008-07-27 Johan Dahlin <johan@gnome.org> * gobject/Makefile.am: * gobject/gobjectmodule.c (PYGLIB_MODULE_START): * gobject/pygobject-private.h: Use glib macros to define the module, update export regexp. svn path=/trunk/; revision=881
* Split out quark and type registration to the respective implementationJohan Dahlin2008-07-2711-19/+184
| | | | | | | | | | | | | | | | | | | | 2008-07-27 Johan Dahlin <johan@gnome.org> * gobject/Makefile.am: * gobject/gobjectmodule.c (init_gobject): * gobject/pygboxed.c (pygobject_boxed_register_types): * gobject/pygboxed.h: * gobject/pygenum.c (pygobject_enum_register_types): * gobject/pygenum.h: * gobject/pygflags.c (pygobject_flags_register_types): * gobject/pygflags.h: * gobject/pygpointer.c (pygobject_pointer_register_types): * gobject/pygpointer.h: Split out quark and type registration to the respective implementation source files, add headers. svn path=/trunk/; revision=880
* Move off a bit more to separate functions, cleaning up the init_glib a bitJohan Dahlin2008-07-267-191/+262
| | | | | | | | | | | | | | | | | | | | | 2008-07-27 Johan Dahlin <johan@gnome.org> * gobject/Makefile.am: * gobject/gobjectmodule.c (pygobject_register_api), (pygobject_register_constants), (pygobject_register_features), (pygobject_register_version_tuples), (pygobject_register_warnings), (init_gobject): * gobject/pygobject-private.h: * gobject/pygobject.c (pyobject_copy), (pyobject_free), (pygobject_object_register_types): * gobject/pygtype.c (_pyg_strv_from_gvalue), (_pyg_strv_to_gvalue), (pygobject_type_register_types): * gobject/pygtype.h: Move off a bit more to separate functions, cleaning up the init_glib a bit more. svn path=/trunk/; revision=879