summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* release the thread lock on non-async functions.Gian Mario Tagliaretti2009-02-164-0/+61
| | | | svn path=/trunk/; revision=1004
* Add 2.18 gio API.Gian Mario Tagliaretti2009-02-104-0/+244
| | | | svn path=/trunk/; revision=1003
* huge patch to fix memory leaks all over the place, fixes #568427Gian Mario Tagliaretti2009-02-088-21/+301
| | | | svn path=/trunk/; revision=1002
* :write_enum_defs(): Prevent an exception when the prefix is empty.Murray Cumming2009-02-062-1/+6
| | | | | | | | | 2009-02-06 Murray Cumming <murrayc@murrayc.com> * codegen/h2def.py DefsWriter::write_enum_defs(): Prevent an exception when the prefix is empty. svn path=/trunk/; revision=1001
* Bug 569350 – Inconsistent use of tabs and spaces in pygtk.pyPaul Pogonyshev2009-01-292-3/+9
| | | | | | | | | | 2009-01-29 Paul Pogonyshev <pogonyshev@gmx.net> Bug 569350 – Inconsistent use of tabs and spaces in pygtk.py * pygtk.py: Replace all tabs with spaces. svn path=/trunk/; revision=1000
* Bug 567792 – gio.InputStream.read_async can cause memory corruptionPaul Pogonyshev2009-01-293-94/+96
| | | | | | | | | | | | | | | | | | | | | | | 2009-01-29 Paul Pogonyshev <pogonyshev@gmx.net> Bug 567792 – gio.InputStream.read_async can cause memory corruption * gio/gio.override (py_decref_callback): Remove (unused now). (pygio_notify_allocate_buffer, pygio_notify_attach_to_result) (pygio_notify_get_attached): New functions. (async_result_callback_marshal): Attach to the result object if asked and then don't free self. Fix reference leak (spotted by Gustavo). * gio/ginputstream.override (async_result_callback_marshal_read): Remove. Use new attachment functionality in async_result_callback_marshal() instead. (_wrap_g_input_stream_read_async): Use the new functions (also those mentioned in the cleanup log below). (_wrap_g_input_stream_read_finish): Use the new functions. svn path=/trunk/; revision=999
* Do not escape the ampersand "&" in entity references (bug #568485).Daniel Elstner2009-01-272-7/+18
| | | | | | | | * codegen/docextract_to_xml.py (escape_text): Do not escape the ampersand "&" in entity references (bug #568485). Replace some unusual entity references in the output with their literal values. svn path=/trunk/; revision=998
* Bug 566571 – gtk.Buildable interface method override is not recognizedPaul Pogonyshev2009-01-143-100/+106
| | | | | | | | | | | | | | | | 2009-01-14 Paul Pogonyshev <pogonyshev@gmx.net> Bug 566571 – gtk.Buildable interface method override is not recognized * gobject/gobjectmodule.c (pyg_type_add_interfaces): New function, break out code repetition out of pyg_type_register(). * tests/test_subtype.py (TestSubType.test_gtk_buildable_virtual_method): New test case (inactive). svn path=/trunk/; revision=997
* Bug 566706 – cleanup GIO overridesPaul Pogonyshev2009-01-149-414/+455
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2009-01-14 Paul Pogonyshev <pogonyshev@gmx.net> Bug 566706 – cleanup GIO overrides * gio/gio.override (pygio_notify_new) (pygio_notify_using_optional_callback) (pygio_notify_callback_is_valid_full) (pygio_notify_callback_is_valid) (pygio_notify_reference_callback): New functions. (pygio_notify_free): Rename from pygio_free_notify() and extend. (async_result_callback_marshal): Warn if new `referenced' field is not set (programming error). (_wrap_g_drive_eject, _wrap_g_drive_poll_for_media) (_wrap_g_mount_unmount, _wrap_g_mount_eject) (_wrap_g_mount_remount): Lots of cleanup: use new functions instead of repeating code, unify and fix error handling. * gio/gfile.override (_wrap_g_file_read_async) (_wrap_g_file_load_contents_async) (_wrap_g_file_enumerate_children_async) (_wrap_g_file_mount_mountable, _wrap_g_file_unmount_mountable) (_wrap_g_file_mount_enclosing_volume, _wrap_g_file_copy) (_wrap_g_file_copy_async, _wrap_g_file_move) (_wrap_g_file_append_to_async, _wrap_g_file_create_async) (_wrap_g_file_replace_async, _wrap_g_file_query_info_async) (_wrap_g_file_replace_contents_async): Similar cleanup. * gio/gfileenumerator.override (_wrap_g_file_enumerator_next_files_async): Similar cleanup. * gio/gicon.override (_wrap_g_loadable_icon_load_async): Similar cleanup. * gio/ginputstream.override (_wrap_g_input_stream_close_async): Similar cleanup. * gio/goutputstream.override (_wrap_g_output_stream_write_async) (_wrap_g_output_stream_close_async): Similar cleanup. * gio/gvolume.override (_wrap_g_volume_mount) (_wrap_g_volume_eject): Similar cleanup. * tests/test_gio.py (TestFile.test_copy_async): Fix the test. svn path=/trunk/; revision=996
* Add a comment explaining why the two for loops for registering interfaces.Gustavo J. A. M. Carneiro2009-01-092-0/+34
| | | | | | | | * gobject/gobjectmodule.c (pyg_type_register): Add a comment explaining why the two for loops for registering interfaces. svn path=/trunk/; revision=995
* Bug 566744 – _wrap_g_input_stream_read_async() argument parsing hasPaul Pogonyshev2009-01-072-1/+9
| | | | | | | | | | | | 2009-01-07 Paul Pogonyshev <pogonyshev@gmx.net> Bug 566744 – _wrap_g_input_stream_read_async() argument parsing has incorrect keyword args * gio/ginputstream.override (_wrap_g_input_stream_read_async): Fix keyword list to be in sync with positional arguments. svn path=/trunk/; revision=994
* Bad -I ordering can break build fixes #566737Gian Mario Tagliaretti2009-01-065-8/+18
| | | | svn path=/trunk/; revision=993
* Define methods.Mads Chr. Olesen2009-01-044-0/+157
| | | | | | | | | | | | | 2009-01-04 Mads Chr. Olesen <gnome-bugzilla@shiyee.dk> * gio/gio.defs (gio.File.copy_async, gio.File.copy_finish): Define methods. * gio/gfile.override (_wrap_g_file_copy_async): New function. * tests/test_gio.py (TestFile.test_copy_async): Test the methods. svn path=/trunk/; revision=990
* Bug 563714 – GNOME Goal: Clean up GLib and GTK+ includesPrzemysław Grzegorczyk2009-01-043-2/+9
| | | | | | | | | | | 2009-01-04 Przemysław Grzegorczyk <pgrzegorczyk@gmail.com> Bug 563714 – GNOME Goal: Clean up GLib and GTK+ includes * gobject/generate-constants.c: * glib/pygspawn.c: Only include toplevel <glib.h>. svn path=/trunk/; revision=989
* Bug 564018 – pygobject libtool-2.2 patchPaul Pogonyshev2009-01-042-0/+9
| | | | | | | | | | | 2009-01-04 Paul Pogonyshev <pogonyshev@gmx.net> Bug 564018 – pygobject libtool-2.2 patch * configure.ac: Apply the patch provided by Cygwin Ports maintainer. svn path=/trunk/; revision=988
* Branch, bump version to 2.17.0.Paul Pogonyshev2009-01-042-2/+6
| | | | | | | | 2009-01-04 Paul Pogonyshev <pogonyshev@gmx.net> * configure.ac: Branch, bump version to 2.17.0. svn path=/trunk/; revision=987
* Merge from 2.16 branch:Paul Pogonyshev2008-12-242-0/+71
| | | | | | | | | | | 2008-12-24 Paul Pogonyshev <pogonyshev@gmx.net> Bug 547119 – gobject.timeout_add_seconds() not found in docs * docs/reference/pyglib-functions.xml (glib.timeout_add_seconds): Describe. svn path=/trunk/; revision=983
* Merge from 2.16 branch:Paul Pogonyshev2008-12-214-4/+35
| | | | | | | | | | | | | | | | | | | 2008-12-21 Paul Pogonyshev <pogonyshev@gmx.net> Bug 564102 – _wrap_g_output_stream_write_async not adding a reference to the buffer passed * gio/gio.override (pygio_notify_copy_buffer): New function. (pygio_free_notify): Free new `buffer' field if it is set. * gio/goutputstream.override (_wrap_g_output_stream_write_async): Copy the buffer with new pygio_notify_copy_buffer() and use the copy for g_output_stream_write_async() call. * gio/gfile.override (_wrap_g_file_replace_contents_async): Same as for _wrap_g_output_stream_write_async(). svn path=/trunk/; revision=981
* Test if `domain' is not-null before using it (avoids segfaults, see bugPaul Pogonyshev2008-12-032-3/+13
| | | | | | | | | 2008-12-03 Paul Pogonyshev <pogonyshev@gmx.net> * glib/pyglib.c (pyglib_error_check): Test if `domain' is not-null before using it (avoids segfaults, see bug #561826). svn path=/trunk/; revision=976
* Add option (-p) to use the modulename as a hint to the prefix of functionsJohn Finlay2008-11-031-18/+84
| | | | | | | | | | * codegen/defsgen.py (DefsWriter.write_enum_defs): Add option (-p) to use the modulename as a hint to the prefix of functions and type codes. Provide way to identify untyped enums and flags and print defs for them as well. svn path=/trunk/; revision=975
* Add defsgen to __all__ list. Strip out # directives from enum defintions.John Finlay2008-11-013-0/+12
| | | | | | | | | * codegen/__init__.py (__all__): Add defsgen to __all__ list. * codegen/h2def.py (find_enum_defs): Strip out # directives from enum defintions. (clean_func): Change ' * G_CONST_RETURN * ' to '** ' svn path=/trunk/; revision=974
* Add defsgen.pyJohn Finlay2008-10-312-0/+3
| | | | | | | * codegen/Makefile.am (codegen_PYTHON): Add defsgen.py svn path=/trunk/; revision=973
* Use the passed in prefix as a hint when creating a typecode.John Finlay2008-10-313-14/+41
| | | | | | | | | | | | | | | * codegen/defsgen.py (typecode): Use the passed in prefix as a hint when creating a typecode. (split_prefix,write_enum_defs,_write_obj_helper): Add function to use passed in prefix as a hint when splitting an object name into module and name. * codegen/h2def.py (DefsWriter.write_enum_defs): Make sure the prefix ends with a _ i.e. really handle the GDK_FONT_FONT, GDK_FONT_FONTSET case. svn path=/trunk/; revision=972
* g_output_stream_write_all use gsize instead of gssizeGian Mario Tagliaretti2008-09-122-1/+6
| | | | svn path=/trunk/; revision=971
* Bug 530935 – pygobject_set_properties doesnt release the GILPaul Pogonyshev2008-09-092-20/+21
| | | | | | | | | | | | 2008-09-10 Paul Pogonyshev <pogonyshev@gmx.net> Bug 530935 – pygobject_set_properties doesnt release the GIL * gobject/pygobject.c (pygobject_set_properties): Reuse set_property_from_pspec() which release GIL for us. Also make sure that g_object_thaw_notify() is called even after error. svn path=/trunk/; revision=970
* Bug 549517 – add __repr__ to gio.Drive, gio.Mount and gio.VolumePaul Pogonyshev2008-09-083-0/+79
| | | | | | | | | | | | | 2008-09-09 Paul Pogonyshev <pogonyshev@gmx.net> Bug 549517 – add __repr__ to gio.Drive, gio.Mount and gio.Volume * gio/gio.override (_wrap_g_drive_tp_repr, _wrap_g_mount_tp_repr): New functions. * gio/gvolume.override (_wrap_g_volume_tp_repr): New function. svn path=/trunk/; revision=969
* Bug 551227 – Missing AC_CONFIG_MACRO_DIR([m4])Loïc Minier2008-09-082-0/+7
| | | | | | | | | | 2008-09-09 Loïc Minier <lool@dooz.org> Bug 551227 – Missing AC_CONFIG_MACRO_DIR([m4]) * configure.ac: Add AC_CONFIG_MACRO_DIR. svn path=/trunk/; revision=968
* Bug 551056 – make codegen not import when corresponding argument typesPaul Pogonyshev2008-09-083-7/+30
| | | | | | | | | | | | | | | | | | 2008-09-08 Paul Pogonyshev <pogonyshev@gmx.net> Bug 551056 – make codegen not import when corresponding argument types are not registered * codegen/override.py (import_pat): Add support for optional 'for' clause. (Overrides.__parse_override): Handle it. * codegen/codegen.py (SourceWriter.write_imports) (SourceWriter.write_object_imports): Adapt for changes in get_imports() return value. (is_registered_object): New function. svn path=/trunk/; revision=967
* Fix typos breaking compilation (bug #551212).Frederic Peters2008-09-072-4/+10
| | | | | | | | | | 2008-09-07 Frederic Peters <fpeters@0d.be> * gio/gfile.override (_wrap_g_file_load_contents) (_wrap_g_file_load_contents_finish): Fix typos breaking compilation (bug #551212). svn path=/trunk/; revision=966
* Bug 551059 – GFile load_contents methods chop data at first \0Jonathan Matthew2008-09-072-2/+10
| | | | | | | | | | | | 2008-09-07 Jonathan Matthew <jonathan@d14n.org> Bug 551059 – GFile load_contents methods chop data at first \0 * gio/gfile.override: Use 's#' (length specified) rather than 's' when constructing result values in load_contents and load_contents_finish. svn path=/trunk/; revision=965
* Post release version bumpJohan Dahlin2008-09-032-1/+6
| | | | | | | | | | 2008-09-03 Johan Dahlin <johan@gnome.org> * configure.ac: Post release version bump svn path=/trunk/; revision=964
* === 2.15.4 ===PYGOBJECT_2_15_4Johan Dahlin2008-09-032-0/+9
| | | | | | | | | 2008-09-03 Johan Dahlin <johan@gnome.org> * NEWS: Update svn path=/trunk/; revision=962
* Fix typo (s/&type/type) introduced in r886 causing weird crashes onLoïc Minier2008-09-022-1/+7
| | | | | | | | | | 2008-09-03 Loïc Minier <lool@dooz.org> * gobject/pygpointer.c: (pyg_register_pointer): Fix typo (s/&type/type) introduced in r886 causing weird crashes on x86-64; bug #550463. svn path=/trunk/; revision=961
* add G_TYPE_CLOSURE boxed type in codegenGian Mario Tagliaretti2008-09-012-0/+5
| | | | svn path=/trunk/; revision=960
* Post release version bumpJohan Dahlin2008-08-312-1/+6
| | | | | | | | | | 2008-08-31 Johan Dahlin <johan@gnome.org> * configure.ac: Post release version bump svn path=/trunk/; revision=959
* === 2.15.3 ===PYGOBJECT_2_15_3Johan Dahlin2008-08-312-0/+44
| | | | | | | | | 2008-08-31 Johan Dahlin <johan@gnome.org> * NEWS: Update svn path=/trunk/; revision=957
* * gobject/pygobject.c: Fix memory problems reported by valgrind due toGustavo J. A. M. Carneiro2008-08-303-2/+10
| | | | | | | | | * glib/pyglib.h: * gobject/pygobject.c: Fix memory problems reported by valgrind due to invalid tp_basicsize in PyGPropsDescr_Type. Closes #549945. svn path=/trunk/; revision=956
* Mark pyglib_notify_on_enabling_threads() as private (also rename).Paul Pogonyshev2008-08-274-7/+10
| | | | svn path=/trunk/; revision=955
* Bug 549191 – Constructor of gtk.TreeView raises TypeError when model isPaul Pogonyshev2008-08-272-7/+19
| | | | | | | | | | | | 2008-08-28 Paul Pogonyshev <pogonyshev@gmx.net> Bug 549191 – Constructor of gtk.TreeView raises TypeError when model is None * gobject/pygtype.c (pyg_value_from_pyobject): Handle None in G_TYPE_INTERFACE branch. svn path=/trunk/; revision=954
* Bug 549351 – an unitialized variable in PyGLibPaul Pogonyshev2008-08-272-3/+9
| | | | | | | | | | | 2008-08-28 Paul Pogonyshev <pogonyshev@gmx.net> Bug 549351 – an unitialized variable in PyGLib * glib/pygmainloop.c (pyg_main_loop_init): Initialize `is_running'. svn path=/trunk/; revision=953
* Bug 547633 – cannot create new threads when pygtk is usedPaul Pogonyshev2008-08-274-1/+49
| | | | | | | | | | | | | | | | | | 2008-08-28 Paul Pogonyshev <pogonyshev@gmx.net> Bug 547633 – cannot create new threads when pygtk is used * glib/pyglib.c (pyglib_notify_on_enabling_threads): New function. (pyglib_enable_threads): Invoke all callbacks added with new pyglib_notify_on_enabling_threads(). * gobject/gobjectmodule.c (pyg_note_threads_enabled): New function (callback for new pyglib_notify_on_enabling_threads()). (PYGLIB_MODULE_START): Initialize 'pygobject_api_functions.threads_enabled' and also watch for thread being enabled later on. svn path=/trunk/; revision=952
* Bug 547088 – wrap g_content_types_get_registered()Paul Pogonyshev2008-08-274-0/+44
| | | | | | | | | | | | | | | | | | | 2008-08-28 Paul Pogonyshev <pogonyshev@gmx.net> Bug 547088 – wrap g_content_types_get_registered() * gio/gio.override (_wrap_g_drive_get_volumes): Fix refleak. (_wrap_g_content_types_get_registered): New function. * gio/gfileenumerator.override (_wrap_g_file_enumerator_next_files_finish): Fix refleak. * gio/gvolumemonitor.override (_wrap_g_volume_monitor_get_connected_drives): Fix refleak. (_wrap_g_volume_monitor_get_volumes): Likewise. (_wrap_g_volume_monitor_get_mounts): Likewise. svn path=/trunk/; revision=951
* Rename from read(), document. (gio.InputStream.read): Rename fromPaul Pogonyshev2008-08-276-26/+260
| | | | | | | | | | | | | | | | | | | | | | | | 2008-08-28 Paul Pogonyshev <pogonyshev@gmx.net> * gio/gio.defs (gio.InputStream.read_part): Rename from read(), document. (gio.InputStream.read): Rename from read_all(), document. (gio.OutputStream.write_part): Rename from write(), document. (gio.OutputStream.write): Rename from write_all(), document. * gio/ginputstream.override (_wrap_g_input_stream_read): Fix several bugs. (_wrap_g_input_stream_read_all): New function. * gio/goutputstream.override (_wrap_g_output_stream_write_all): New function. * tests/test_gio.py (TestInputStream.testRead): Add more tests. (TestInputStream.test_read_part): New test. (TestInputStream._read_in_loop): New helper method. (TestOutputStream.test_write_part): New test. svn path=/trunk/; revision=950
* Fix keywords getting out of sync with actual argument order.Paul Pogonyshev2008-08-162-1/+6
| | | | | | | | | 2008-08-16 Paul Pogonyshev <pogonyshev@gmx.net> * gio/gfile.override (_wrap_g_file_enumerate_children_async): Fix keywords getting out of sync with actual argument order. svn path=/trunk/; revision=949
* Bug 547495 – wrap four important asynchronous methods in gio.Drive andPaul Pogonyshev2008-08-123-1/+252
| | | | | | | | | | | | | | | | 2008-08-13 Paul Pogonyshev <pogonyshev@gmx.net> Bug 547495 – wrap four important asynchronous methods in gio.Drive and gio.Mount * gio/gio.defs (gio.Drive.eject, gio.Drive.poll_for_media) (gio.Mount.remount): Document. * gio/gio.override (_wrap_g_drive_eject) (_wrap_g_drive_poll_for_media, _wrap_g_mount_eject) (_wrap_g_mount_remount): New functions. svn path=/trunk/; revision=948
* Bug 547484 – wrap gio.DataInputStream.read_line and ...read_untilPaul Pogonyshev2008-08-122-0/+11
| | | | | | | | | | | | | | | 2008-08-12 Paul Pogonyshev <pogonyshev@gmx.net> Bug 547484 – wrap gio.DataInputStream.read_line and ...read_until * tests/test_gio.py (TestDataInputStream): New test case. * gio/gio.defs (read_line, read_until): Document. * gio/ginputstream.override (_wrap_g_data_input_stream_read_line) (_wrap_g_data_input_stream_read_until): New functions. svn path=/trunk/; revision=947
* Bug 547484 – wrap gio.DataInputStream.read_line and ...read_untilPaul Pogonyshev2008-08-123-0/+95
| | | | | | | | | | | | | 2008-08-12 Paul Pogonyshev <pogonyshev@gmx.net> Bug 547484 – wrap gio.DataInputStream.read_line and ...read_until * tests/test_gio.py (TestDataInputStream): New test case. * gio/ginputstream.override (_wrap_g_data_input_stream_read_line) (_wrap_g_data_input_stream_read_until): New functions. svn path=/trunk/; revision=946
* only use 4 spaces in indentGian Mario Tagliaretti2008-08-121-202/+202
| | | | svn path=/trunk/; revision=945
* Bug 547354 – wrap a few memory stream methodsPaul Pogonyshev2008-08-115-1/+103
| | | | | | | | | | | | | | | | | | | | 2008-08-12 Paul Pogonyshev <pogonyshev@gmx.net> Bug 547354 – wrap a few memory stream methods * gio/ginputstream.override (_wrap_g_memory_input_stream_add_data): New function. * gio/gio.defs (gio.MemoryOutputStream.get_contents): Rename from get_data() to avoid name clash. * gio/goutputstream.override (_wrap_g_memory_output_stream_new) (_wrap_g_memory_output_stream_get_data): New functions. * tests/test_gio.py (TestMemoryInputStream) (TestMemoryOutputStream): New test cases. svn path=/trunk/; revision=944
* Ignore `g_io_module*' and `g_io_scheduler_*'.Paul Pogonyshev2008-08-112-0/+6
| | | | | | | | 2008-08-12 Paul Pogonyshev <pogonyshev@gmx.net> * gio/gio.override: Ignore `g_io_module*' and `g_io_scheduler_*'. svn path=/trunk/; revision=943