summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Move around the order of the callback argument to async methods, so itJohan Dahlin2008-04-115-91/+135
| | | | | | | | | | | | | | | 2008-04-11 Johan Dahlin <jdahlin@async.com.br> * gio/gfile.override: * gio/ginputstream.override: * gio/goutputstream.override: * tests/test_gio.py: Move around the order of the callback argument to async methods, so it comes before priority and cancellable, which can have default values. svn path=/trunk/; revision=773
* Implement GAppInfo constructor, add tests.Johan Dahlin2008-04-087-13/+114
| | | | | | | | | | | | | | | 2008-04-08 Johan Dahlin <jdahlin@async.com.br> * gio/Makefile.am: * gio/__init__.py: * gio/gappinfo.override: * gio/gio.defs: * gio/gio.override: * tests/test_gio.py: Implement GAppInfo constructor, add tests. svn path=/trunk/; revision=772
* Wrap GFileInfo.list_attributes(), add tests and set the default ofJohan Dahlin2008-04-086-13/+86
| | | | | | | | | | | | | | | 2008-04-08 Johan Dahlin <jdahlin@async.com.br> * gio/Makefile.am: * gio/gfileinfo.override: * gio/gio.defs: * gio/gio.override: * tests/test_gio.py: Wrap GFileInfo.list_attributes(), add tests and set the default of GFileQueryInfoFlags args to G_FILE_QUERY_INFO_NONE. svn path=/trunk/; revision=771
* Fix a typo Update the tests after the latest "refactoring". The testsuiteJohan Dahlin2008-04-083-2/+16
| | | | | | | | | | | | 2008-04-08 Johan Dahlin <jdahlin@async.com.br> * gobject/option.py: Fix a typo * tests/test_option.py: Update the tests after the latest "refactoring". The testsuite should run fine now again, finally. svn path=/trunk/; revision=770
* Disable these tests until we can figure why they freeze during make check.Johan Dahlin2008-04-082-2/+11
| | | | | | | | | | | | 2008-04-08 Johan Dahlin <johan@gnome.org> * tests/test_gio.py (TestOutputStream.testWriteAsyncError): (TestInputStream._testCloseAsync.callback): Disable these tests until we can figure why they freeze during make check. svn path=/trunk/; revision=769
* Add bindings for content_type_guess. Based on patch by Thomas LeonardJohan Dahlin2008-04-084-0/+60
| | | | | | | | | | | | | 2008-04-08 Johan Dahlin <jdahlin@async.com.br> * gio/gio.defs: * gio/gio.override: * tests/test_gio.py: Add bindings for content_type_guess. Based on patch by Thomas Leonard (#525113) svn path=/trunk/; revision=768
* Add basic support for GThemedIcon, based on patch by Thomas LeonardJohan Dahlin2008-04-085-0/+64
| | | | | | | | | | | | | | 2008-04-08 Johan Dahlin <jdahlin@async.com.br> * gio/gio-types.defs: * gio/gio.defs: * gio/gio.override: * tests/test_gio.py: Add basic support for GThemedIcon, based on patch by Thomas Leonard (#521883) svn path=/trunk/; revision=767
* Unbreak Source.prepare (#523075, Bryan Silverthorn)Johan Dahlin2008-04-083-3/+35
| | | | | | | | | | | 2008-04-08 Johan Dahlin <jdahlin@async.com.br> * gobject/pygsource.c: * tests/test_source.py: Unbreak Source.prepare (#523075, Bryan Silverthorn) svn path=/trunk/; revision=766
* Fix a couple of silly typos and use gio.File instead of GFile inJohan Dahlin2008-04-082-7/+13
| | | | | | | | | | 2008-04-08 Johan Dahlin <johan@gnome.org> * gio/gfile.override (_wrap__install_file_meta): Fix a couple of silly typos and use gio.File instead of GFile in exceptions. svn path=/trunk/; revision=765
* Make gio.File() (calling on an interface) a factory for creating files.Johan Dahlin2008-04-076-1/+139
| | | | | | | | | | | | | | | 2008-04-07 Johan Dahlin <johan@gnome.org> * gio/__init__.py: * gio/gfile.override: * gio/gio-types.defs: * gio/gio.override: * tests/test_gio.py: Make gio.File() (calling on an interface) a factory for creating files. Add tests and a docstring. svn path=/trunk/; revision=764
* Install gio in the right locationJohan Dahlin2008-04-072-2/+6
| | | | | | | | | 2008-04-07 Johan Dahlin <johan@gnome.org> * gio/Makefile.am (pygiodir): Install gio in the right location svn path=/trunk/; revision=763
* Add tests for recently added features.Johan Dahlin2008-04-062-9/+63
| | | | | | | | | 2008-04-06 Johan Dahlin <johan@gnome.org> * tests/test_gio.py: Add tests for recently added features. svn path=/trunk/; revision=762
* Add wrappers.Johan Dahlin2008-04-063-0/+171
| | | | | | | | | | | | 2008-04-06 Johan Dahlin <johan@gnome.org> * gio/goutputstream.override: (_wrap_g_output_stream_write_asyn,_wrap_g_output_stream_close_async): * gio/ginputstream.override (async_result_callback_marshal_read): Add wrappers. svn path=/trunk/; revision=761
* Ignore vararg functions and remove a couple of left overs in the genericJohan Dahlin2008-04-062-11/+6
| | | | | | | | | | 2008-04-06 Johan Dahlin <johan@gnome.org> * gio/gio.override: Ignore vararg functions and remove a couple of left overs in the generic marshaller. svn path=/trunk/; revision=760
* Remove g_file_output_stream_truncate, g_file_output_stream_tell andJohan Dahlin2008-04-062-24/+3
| | | | | | | | | | 2008-04-06 Johan Dahlin <johan@gnome.org> * gio/gio.defs: Remove g_file_output_stream_truncate, g_file_output_stream_tell and g_file_input_stream_tell svn path=/trunk/; revision=759
* Implement the python iteration protocol on GFileEnumeratorJohan Dahlin2008-04-063-0/+54
| | | | | | | | | | | 2008-04-06 Johan Dahlin <johan@gnome.org> * Makefile.am: * gio/gfileenumerator.override (_wrap_g_file_enumerator_tp_iter): Implement the python iteration protocol on GFileEnumerator svn path=/trunk/; revision=758
* Add goffset to the int64 arg typeJohan Dahlin2008-04-062-0/+5
| | | | | | | | | 2008-04-06 Johan Dahlin <johan@gnome.org> * codegen/argtypes.py (arg): Add goffset to the int64 arg type svn path=/trunk/; revision=757
* bug #428732 (pyg_enum_new): Fix two wrong assertions aboutPaul Pogonyshev2008-04-023-8/+46
| | | | | | | | | | | | 2008-04-02 Paul Pogonyshev <pogonyshev@gmx.net> * gobject/pygenum.c: bug #428732 (pyg_enum_new): Fix two wrong assertions about '__enum_values__' size and contents. (pyg_enum_reduce): New function (based on patch by Phil Dumont). (pyg_enum_methods): Hook it up. svn path=/trunk/; revision=756
* Don't return NULL after warning; more useful warning message (bugPaul Pogonyshev2008-03-242-2/+10
| | | | | | | | | 2008-03-24 Paul Pogonyshev <pogonyshev@gmx.net> * gobject/pygenum.c (pyg_enum_richcompare): Don't return NULL after warning; more useful warning message (bug #519631). svn path=/trunk/; revision=755
* Fix the buildJohan Dahlin2008-03-221-9/+3
| | | | svn path=/trunk/; revision=754
* Make read_finish() return the string, remove the get_buffer method. ThisJohan Dahlin2008-03-224-31/+114
| | | | | | | | | | | | | | | | 2008-03-22 Johan Dahlin <johan@gnome.org> * gio/ginputstream.override: * gio/gio.override: * tests/test_gio.py: Make read_finish() return the string, remove the get_buffer method. This is more pythonic, as it mimics the normal read() behavior of python. Update the tests and use a separate marshaller for read. svn path=/trunk/; revision=753
* Allow gobject.property work with subclasses. Add tests.Johan Dahlin2008-03-213-4/+47
| | | | | | | | | | | | | 2008-03-21 Johan Dahlin <johan@gnome.org> * gobject/__init__.py: * tests/test_properties.py: Allow gobject.property work with subclasses. Add tests. (#523352, Tomeu Vizoso) svn path=/trunk/; revision=752
* Require gio and giounix 2.15.7.Johan Dahlin2008-03-092-2/+6
| | | | | | | | | 2008-03-10 Johan Dahlin <johan@gnome.org> * configure.ac: Require gio and giounix 2.15.7. svn path=/trunk/; revision=751
* Update to SVN of gio: g_file_contains_file -> g_file_has_prefix can_seekJohan Dahlin2008-03-094-20/+37
| | | | | | | | | | | | | | | | | 2008-03-09 Johan Dahlin <johan@gnome.org> * gio/gio-types.defs: * gio/gio.defs: * tests/test_gio.py: Update to SVN of gio: g_file_contains_file -> g_file_has_prefix can_seek and can_truncate are now only on the GSeekable interface Add tests (#521207, Thomas Leonard) svn path=/trunk/; revision=750
* Pass in l instead of i to PyArg_ParseTupleAndKeywords when parsing a long.Johan Dahlin2008-03-082-3/+10
| | | | | | | | | | | | 2008-03-08 Johan Dahlin <jdahlin@async.com.br> * gio/ginputstream.override: Pass in l instead of i to PyArg_ParseTupleAndKeywords when parsing a long. Fixes the build on 64-bit systems. (#521165, Thomas Leonard) svn path=/trunk/; revision=749
* Dist .m4 files. (#496011, Ed Catmur)Johan Dahlin2008-03-022-2/+10
| | | | | | | | | | 2008-03-22 Johan Dahlin <johan@gnome.org> * Makefile.am: Dist .m4 files. (#496011, Ed Catmur) svn path=/trunk/; revision=748
* Never override customly set 'tp_new' and 'tp_alloc'.Paul Pogonyshev2008-03-022-2/+9
| | | | | | | | | 2008-03-02 Paul Pogonyshev <pogonyshev@gmx.net> * gobject/gobjectmodule.c (REGISTER_TYPE): Never override customly set 'tp_new' and 'tp_alloc'. svn path=/trunk/; revision=747
* Add this so other bindings can find gio.defsDan Winship2008-02-012-0/+6
| | | | | | | * pygobject-2.0.pc.in (defsdir): Add this so other bindings can find gio.defs svn path=/trunk/; revision=746
* Remove private commentsJohan Dahlin2008-01-291-16/+0
| | | | svn path=/trunk/; revision=745
* Don't assume the buffer is set, use Py_XINCREF instead of Py_INCREF.Johan Dahlin2008-01-218-16/+139
| | | | | | | | | | | | | | | | | | | | 2008-01-21 Johan Dahlin <johan@gnome.org> * gio/gio.override (async_result_callback_marshal): Don't assume the buffer is set, use Py_XINCREF instead of Py_INCREF. * gio/Makefile.am: * gio/ginputstream.override: * gio/goutputstream.override: * gio/gvolumemonitor.override: * gio/gfile.override: * tests/test_gio.py: Implement and test GFile.read_async. Use try/finally to always quit the mainloop, even if the test fail. Update source comment headers. svn path=/trunk/; revision=744
* New testJohan Dahlin2008-01-202-0/+18
| | | | | | | | | 2008-01-20 Johan Dahlin <johan@gnome.org> * tests/test_gio.py (TestVolumeMonitor): New test svn path=/trunk/; revision=743
* Reuse file descriptor for reading and writing. Avoid unnecessary flush()Johan Dahlin2008-01-201-5/+3
| | | | svn path=/trunk/; revision=742
* Split out overrides into more files. Fix up module description in commentJohan Dahlin2008-01-209-246/+375
| | | | | | | | | | | | | | | | | | 2008-01-20 Johan Dahlin <johan@gnome.org> * gio/Makefile.am: * gio/ginputstream.override: * gio/gio.override: * gio/giomodule.c: * gio/goutputstream.override: * gio/gvolumemonitor.override: * gio/unix.override: * gio/unixmodule.c: Split out overrides into more files. Fix up module description in comment svn path=/trunk/; revision=741
* Add a new method, to fetch the buffer (_wrap_g_input_stream_read_async):Johan Dahlin2008-01-203-9/+46
| | | | | | | | | | | | | 2008-01-20 Johan Dahlin <johan@gnome.org> * gio/gio.override (_wrap_g_simple_async_result_get_buffer): Add a new method, to fetch the buffer (_wrap_g_input_stream_read_async): Save a reference to the buffer. * tests/test_gio.py (TestInputStream.testReadAsync.callback): Check the content svn path=/trunk/; revision=740
* New function to test error condition of async read.Johan Dahlin2008-01-203-2/+31
| | | | | | | | | | | | | 2008-01-20 Johan Dahlin <johan@gnome.org> * tests/test_gio.py (TestInputStream.testReadAsyncError): New function to test error condition of async read. * gio/gio.override (async_result_callback_marshal): Grab a reference to callback/data. svn path=/trunk/; revision=739
* Reorganize tests and make them test more useful thingsJohan Dahlin2008-01-201-11/+12
| | | | svn path=/trunk/; revision=738
* Impl.Johan Dahlin2008-01-195-1/+118
| | | | | | | | | | | | | | | | 2008-01-19 Johan Dahlin <johan@gnome.org> * gio/gio.override (_wrap_g_output_stream_write): Impl. * gio/gio.override: * gio/unix.defs: Add GUnixInputStream type and methods * tests/common.py: * tests/test_gio.py: Add GIO tests. svn path=/trunk/; revision=737
* Implement.Johan Dahlin2008-01-192-4/+75
| | | | | | | | | | | 2008-01-19 Johan Dahlin <johan@gnome.org> * gio/gio.override (_wrap_g_app_info_get_all_for_type), (_wrap_g_app_info_get_all), (_wrap_g_drive_get_volumes): Implement. svn path=/trunk/; revision=736
* New marshaller for async results (_wrap_g_input_stream_read_async): Impl.Johan Dahlin2008-01-194-3/+117
| | | | | | | | | | | | | 2008-01-19 Johan Dahlin <johan@gnome.org> * gio/gio.override (async_result_callback_marshal): New marshaller for async results (_wrap_g_input_stream_read_async): Impl. * gio/gio-types.defs: Add SimpleAsyncRequest * gio/giomodule.c: Register enums/constants svn path=/trunk/; revision=735
* Fix a silly bug so it possible to read files larger than 8192 bytes.Johan Dahlin2008-01-192-4/+9
| | | | | | | | | | 2008-01-19 Johan Dahlin <johan@gnome.org> * gio/gio.override: Fix a silly bug so it possible to read files larger than 8192 bytes. svn path=/trunk/; revision=734
* Set null-ok for all cancelable as well.Johan Dahlin2008-01-192-107/+109
| | | | | | | | | 2008-01-19 Johan Dahlin <johan@gnome.org> * gio/gio.defs: Set null-ok for all cancelable as well. svn path=/trunk/; revision=733
* set gio.unix to None if it's not availableJohan Dahlin2008-01-192-1/+3
| | | | | | | | | 2008-01-19 Johan Dahlin <johan@gnome.org> * gio/__init__.py: set gio.unix to None if it's not available svn path=/trunk/; revision=732
* Implement InputStream.read efficiently without copying the strings, basedJohan Dahlin2008-01-194-107/+200
| | | | | | | | | | | | | | | | 2008-01-19 Johan Dahlin <johan@gnome.org> * gio/gio.override: Implement InputStream.read efficiently without copying the strings, based on the standard libararys file.read() implementation. * gio/gio-types.defs (Cancellable): Add wrapper. * gio/gio.defs (replace): Do not require cancellable argument to be specified, default to NULL if not. svn path=/trunk/; revision=731
* Import codegen from pygtk. Add initial gio and gio.unix bindings.Johan Dahlin2008-01-1936-1/+13165
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2008-01-19 Johan Dahlin <johan@gnome.org> * Makefile.am: * codegen/Makefile.am: * codegen/README.defs: * codegen/__init__.py: * codegen/argtypes.py: * codegen/code-coverage.py: * codegen/codegen.py: * codegen/createdefs.py: * codegen/definitions.py: * codegen/defsconvert.py: * codegen/defsgen.py: * codegen/defsparser.py: * codegen/docextract.py: * codegen/docextract_to_xml.py: * codegen/docgen.py: * codegen/h2def.py: * codegen/mergedefs.py: * codegen/missingdefs.py: * codegen/mkskel.py: * codegen/override.py: * codegen/pygtk-codegen-2.0.in: * codegen/reversewrapper.py: * codegen/scanvirtuals.py: * codegen/scmexpr.py: * configure.ac: * gio/Makefile.am: * gio/__init__.py: * gio/gio-types.defs: * gio/gio.defs: * gio/gio.override: * gio/giomodule.c: (init_gio): * gio/unix-types.defs: * gio/unix.defs: * gio/unix.override: * gio/unixmodule.c: (initunix): Import codegen from pygtk. Add initial gio and gio.unix bindings. svn path=/trunk/; revision=730
* Don't link against libffi if we cannot find libffi on the system.Johan Dahlin2008-01-112-4/+32
| | | | | | | | | | 2008-01-11 Johan Dahlin <johan@gnome.org> * configure.ac: Don't link against libffi if we cannot find libffi on the system. (#496006, Ed Catmur) svn path=/trunk/; revision=729
* Include -Wall and -Werror when checking for PySignal_SetWakeupFdJohan Dahlin2008-01-032-1/+4
| | | | | | | | * configure.ac (CPPFLAGS): Include -Wall and -Werror when checking for PySignal_SetWakeupFd svn path=/trunk/; revision=725
* Reviewed by: GustavoJohan Dahlin2008-01-033-11/+89
| | | | | | | | | | | | | | | 2008-01-03 Johan Dahlin <johan@gnome.org> Reviewed by: Gustavo * configure.ac: * gobject/pygmainloop.c (pyg_signal_watch_prepare): Optinally use PySignal_SetWakeupFd to avoid having to do a timeout to find out if there are any pending signals from python. Fixes #481569 svn path=/trunk/; revision=723
* Bug 460606 – wrap g_get_application_name and g_get_prgnameGustavo J. A. M. Carneiro2008-01-022-0/+37
| | | | svn path=/trunk/; revision=722
* Add props attributeRafael Villar Burke2007-11-302-0/+24
| | | | | | | | 2007-11-30 Rafael Villar Burke <pachi@rvburke.com> * docs/reference/pygobject.xml: Add props attribute svn path=/trunk/; revision=721
* check for NULL before dereferencing.Paolo Borelli2007-11-242-6/+13
| | | | | | | | | 2007-11-24 Paolo Borelli <pborelli@katamail.com> * gobject/gobjectmodule.c (pyg_type_register): check for NULL before dereferencing. svn path=/trunk/; revision=720